Does anyone know how I can exclude certain folders and files from certain builds? Essentially I've got test code that needs to be deployed to the testing server - but obviously not the real server. This is in both files and folders.
Using the configuration manager profiles, I would like to create a profile for each scenario, and tell it what files it does not need.
Nick_Uk
Participant
800 Points
445 Posts
Excluding Files From Different Configuration Settings
Oct 07, 2010 09:43 AM|LINK
Hey dudes,
Does anyone know how I can exclude certain folders and files from certain builds? Essentially I've got test code that needs to be deployed to the testing server - but obviously not the real server. This is in both files and folders.
Using the configuration manager profiles, I would like to create a profile for each scenario, and tell it what files it does not need.
Cheers
Site
Blog
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
Nick_Uk
Participant
800 Points
445 Posts
Re: Excluding Files From Different Configuration Settings
Oct 15, 2010 10:25 AM|LINK
Thanks mate.
Site
Blog