Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
17743 Points
1414 Posts
Oct 13, 2010 01:10 AM|LINK
Hi,
You can try ItemGroup in your csproj/vbproj:
<ItemGroup> <Res Include = "Strings.fr.resources" > <Culture>fr</Culture> </Res> <Res Include = "Dialogs.fr.resources" > <Culture>fr</Culture> </Res> <CodeFiles Include="**\*.cs" Exclude="**\generated\*.cs" /> <CodeFiles Include="..\..\Resources\Constants.cs" /> </ItemGroup>
Be careful, wrong settings in project will cause it unable to be loaded.
For more details:
http://msdn.microsoft.com/en-us/library/646dk05y.aspx
I hope this can be helpful for you.
XiaoCheng Fa...
All-Star
17743 Points
1414 Posts
Re: Excluding Files From Different Configuration Settings
Oct 13, 2010 01:10 AM|LINK
Hi,
You can try ItemGroup in your csproj/vbproj:
<ItemGroup> <Res Include = "Strings.fr.resources" > <Culture>fr</Culture> </Res> <Res Include = "Dialogs.fr.resources" > <Culture>fr</Culture> </Res> <CodeFiles Include="**\*.cs" Exclude="**\generated\*.cs" /> <CodeFiles Include="..\..\Resources\Constants.cs" /> </ItemGroup>Be careful, wrong settings in project will cause it unable to be loaded.
For more details:
http://msdn.microsoft.com/en-us/library/646dk05y.aspx
I hope this can be helpful for you.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework