Fix build issues
This commit is contained in:
Родитель
3ade7eb622
Коммит
0fcc4feb54
|
@ -23,6 +23,14 @@
|
|||
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<XamlApp-Platform Condition="'$(Platform)' != ''">$(Platform)</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)' == 'x86'">Win32</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)' == 'AnyCPU'">Win32</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)'=='x86'">Win32</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)'=='x64'">x64</XamlApp-Platform>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<DefaultTargetPlatformVersion Condition="'$(DefaultTargetPlatformVersion)'==''">18362</DefaultTargetPlatformVersion>
|
||||
<AssetTargetFallback Condition="'$(AssetTargetFallback)'==''">uap10.0.$(DefaultTargetPlatformVersion)</AssetTargetFallback>
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.2" PrivateAssets="all"/>
|
||||
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.18362.2002-preview" PrivateAssets="analyzers"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(IsNativeWin32Project)'!='true'">
|
||||
<Reference Include="$(MSBuildThisFileDirectory)\Microsoft.Toolkit.Win32.UI.XamlApplication\bin\$(Configuration)\$(XamlApp-Platform)\Microsoft.Toolkit.Win32.UI.XamlHost.winmd" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
<Name>Microsoft.Toolkit.Forms.UI.XamlHost</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Microsoft.Toolkit.Sample.UWP.App\Microsoft.Toolkit.Sample.UWP.App.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlApplication.vcxproj" />
|
||||
<ProjectReference Include="..\Microsoft.Toolkit.Win32.UI.XamlHost\Microsoft.Toolkit.Win32.UI.XamlHost.Managed.csproj" />
|
||||
</ItemGroup>
|
||||
<Import Project="..\Microsoft.WinRT.Win32.targets" />
|
||||
|
|
|
@ -51,9 +51,6 @@
|
|||
<ProjectReference Include="..\Microsoft.Toolkit.Sample.UWP.App\Microsoft.Toolkit.Sample.UWP.App.csproj" Condition="'$(TargetFramework)'=='netcoreapp3.0'">
|
||||
<Private>true</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlApplication.vcxproj">
|
||||
<Private>true</Private>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Microsoft.Toolkit.Win32.UI.XamlHost\Microsoft.Toolkit.Win32.UI.XamlHost.Managed.csproj">
|
||||
<Private>true</Private>
|
||||
</ProjectReference>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<WindowsTargetPlatformVersion Condition=" '$(WindowsTargetPlatformVersion)' == '' ">10.0.18362.0</WindowsTargetPlatformVersion>
|
||||
<WindowsTargetPlatformMinVersion>10.0.18362.0</WindowsTargetPlatformMinVersion>
|
||||
<IsNativeWin32Project>true</IsNativeWin32Project>
|
||||
<TargetFrameworks>UAP,Version=v10.0</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
|
|
|
@ -11,24 +11,6 @@
|
|||
<Platforms>AnyCPU;x64;x86</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<XamlApp-Platform Condition="'$(Platform)' != ''">$(Platform)</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)' == 'x86'">Win32</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)' == 'AnyCPU'">Win32</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)'=='x86'">Win32</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)'=='x64'">Win32</XamlApp-Platform>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Microsoft.Toolkit.UI.XamlHost.props" />
|
||||
<None Remove="Microsoft.Toolkit.UI.XamlHost.targets" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="..\Microsoft.Toolkit.Win32.UI.XamlApplication\bin\$(Configuration)\$(XamlApp-Platform)\Microsoft.Toolkit.Win32.UI.XamlHost.winmd" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<XamlApp-Platform Condition="'$(Platform)' != ''">$(Platform)</XamlApp-Platform>
|
||||
<XamlApp-Platform Condition="'$(Platform)' == 'x86'">Win32</XamlApp-Platform>
|
||||
|
|
|
@ -61,7 +61,6 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Microsoft.Toolkit.Win32.UI.XamlApplication\Microsoft.Toolkit.Win32.UI.XamlApplication.vcxproj" />
|
||||
<ProjectReference Include="..\Microsoft.Toolkit.Win32.UI.XamlHost\Microsoft.Toolkit.Win32.UI.XamlHost.Managed.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче