Skip to content

Commit e2b86f7

Browse files
authored
Update CyberPrism.Core.csproj
exclude the files
1 parent c275e13 commit e2b86f7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CyberPrism.Core/CyberPrism.Core.csproj

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>
88

9-
<!-- WPF only for the Windows target -->
9+
<!-- WPF only for Windows target -->
1010
<PropertyGroup Condition="'$(TargetFramework)'=='net8.0-windows7.0'">
1111
<UseWPF>true</UseWPF>
1212
</PropertyGroup>
@@ -16,4 +16,15 @@
1616
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.122" />
1717
</ItemGroup>
1818

19+
<!-- Exclude WPF/Prism code from net8.0 -->
20+
<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
21+
<Compile Remove="Converters\**\*.cs" />
22+
<Compile Remove="Views\**\*.cs" />
23+
<Compile Remove="Views\**\*.xaml" />
24+
<Compile Remove="Events\**\*.cs" />
25+
<Compile Remove="Services\RestService.cs" />
26+
<Compile Remove="Models\AppSettings.cs" />
27+
<Compile Remove="Models\SharedModels.cs" />
28+
</ItemGroup>
29+
1930
</Project>

0 commit comments

Comments
 (0)