Options with custom build tools
i've been trying figure out exact same thing. apparently, can't ide:
i think, however, may possible alter .csproj file behaviour of generateresource build task public class generated. xml task defined here:
http://msdn2.microsoft.com/en-us/library/ms164295.aspx
the publicclass parameter isn't defined here, if in actual generateresource class definition:
http://msdn2.microsoft.com/en-us/library/microsoft.build.tasks.generateresource.publicclass.aspx
it exist, though it's considered internal infrastructure property. when in microsoft.common.targets, you'll find definition generateresource:
<
generateresource sources="@(resxwithnoculture)" usesourcepath="$(usesourcepath)" references="@(referencepath)" neverlocktypeassemblies="$(generateresourceneverlocktypeassemblies)" statefile="$(intermediateoutputpath)$(msbuildprojectfile).generateresource.cache" outputresources="@(manifestresourcewithnoculturename->'$(intermediateoutputpath)%(identity).resources')" condition=" '@(resxwithnoculture)' != '' "><
output taskparameter="outputresources" itemname="manifestresourcewithnoculture"/><
output taskparameter="fileswritten" itemname="filewrites"/></
generateresource>this contains "internal" parameters such "neverlocktypeassemblies", suggests me should possible stick in "publicclass" parameter somehow. guess if always want public class generated, should able edit above in microsoft.common.targets include parameter , set true. i'm not sure how how modify .csproj file parameter set there instead. need read msbuild docs. :)
norman
Archived Forums V > Visual C# IDE
Comments
Post a Comment