-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BinFmt] Identify usages of GenerateResource task #8827
Comments
FYI @Forgind - the search might be simplified via simply adding an implicit |
I'm using the GenerateResource task in a few projects, via the StronglyTypedClassName etc. metadata on EmbeddedResource items. These EmbeddedResource items are defined in shared projects (*.shproj, *.projitems), and C# source is generated in each consuming project. I don't remember exactly why I did it this way -- perhaps there was some problem with Visual Studio not updating *.projitems correctly if the C# file was generated at design time. In these *.resx files, all resources are strings only, but some of them read files at build time via System.Resources.ResXFileRef. |
To a first approximation, the set of "repos that use GenerateResource" is the same as the set of "repos that use .NET". Search for Few call msbuild/src/Tasks/Microsoft.Common.CurrentVersion.targets Lines 3293 to 3295 in 9604d20
|
Based on offlien discussion with @rainersigwald - |
Confirming the findings above. The one direct use of The resource story end-to-end is out of scope, the task is just a conversion tool. |
Related to #8827 Context Some of the comments mentioning BinaryFormatter are misleading. Most of the classes don't need to be serializable. The only exception is PortableLibraryFile which is serialized cross-domain on .NET Framework. Changes Made Removed [Serializable] and the comment about BinaryFormatter-based calls from several classes. Left it on PortableLibraryFile, ifdef'ed to .NET Framework builds only. Testing Experimental insertion confirmed that PortableLibraryFile is indeed marshaled cross-domain in some scenarios. Confirmed that it is the only such type by code inspection.
Background
#6215
This subitem is focused on GenerateResource task
Here we dont need to know exact usages - just gain some idea about magnitude and patterns of usage
GenerateResouce Task uses BinaryFormatter for
application/x-microsoft.net.object.binary.base64
mime type - so we are mainly interested in that oneExpected output
GenerateResource
task + some sample usagesGenerateResource
taskGenerateResource
task, idealy categorized by recent usage and # of commits, or some relativelu useful metric giving idea of how much/few it's being used (especialy for Core).TODO
what about resgen.exe?
The text was updated successfully, but these errors were encountered: