Excluding xaml files in build based on target #15227
Closed
cconner100
started this conversation in
General
Replies: 2 comments 4 replies
-
Great question. Excluding files is done though using multiple exclusion groups, as such: <ItemGroup>
<Page Remove="$(MSBuildThisFileDirectory)MyFolder\**" />
<Compile Remove="$(MSBuildThisFileDirectory)MyFolder\**" />
<None Include="$(MSBuildThisFileDirectory)MyFolder\**" />
</ItemGroup> You can use a |
Beta Was this translation helpful? Give feedback.
2 replies
-
Here is a small repro on what i have tried and its not working. If someone could give me a solution that would be great, There are 2 directories under presentation Windows and MacOS, I only want the windows directory to compile when compiling for windows and exclude the MacOS. thanks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Do you have any suggestions on how to exclude xaml files from a build based on the target? Even if you need to exclude a directory would be acceptable.
thanks
Beta Was this translation helpful? Give feedback.
All reactions