Created
March 3, 2019 06:44
-
-
Save Zonciu/c1cb1fdaafbdba37227f97a7c7c30f0b to your computer and use it in GitHub Desktop.
WPF designer project configuration in net core 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | |
<PropertyGroup> | |
<OutputType>WinExe</OutputType> | |
<TargetFrameworks>net472;netcoreapp3.0</TargetFrameworks> | |
<UseWPF>true</UseWPF> | |
</PropertyGroup> | |
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' "> | |
<Reference Include="System" /> | |
<Reference Include="System.Data" /> | |
<Reference Include="System.Xml" /> | |
<Reference Include="Microsoft.CSharp" /> | |
<Reference Include="System.Core" /> | |
<Reference Include="System.Xml.Linq" /> | |
<Reference Include="System.Data.DataSetExtensions" /> | |
<Reference Include="System.Net.Http" /> | |
<Reference Include="System.Xaml"> | |
<RequiredTargetFramework>4.0</RequiredTargetFramework> | |
</Reference> | |
<Reference Include="WindowsBase" /> | |
<Reference Include="PresentationCore" /> | |
<Reference Include="PresentationFramework" /> | |
</ItemGroup> | |
<ItemGroup Condition=" '$(TargetFramework)' == 'net472' "> | |
<!-- add files to here to enable designer --> | |
<Compile Update="App.xaml.cs"> | |
<DependentUpon>App.xaml</DependentUpon> | |
<SubType>Code</SubType> | |
</Compile> | |
<Compile Update="MainWindow.xaml.cs"> | |
<DependentUpon>MainWindow.xaml</DependentUpon> | |
<SubType>Code</SubType> | |
</Compile> | |
</ItemGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment