aboutsummaryrefslogtreecommitdiffstats
path: root/Templates/widgetsclass/QtTemplate.Item.WidgetsClass.csproj
diff options
context:
space:
mode:
Diffstat (limited to 'Templates/widgetsclass/QtTemplate.Item.WidgetsClass.csproj')
-rw-r--r--Templates/widgetsclass/QtTemplate.Item.WidgetsClass.csproj45
1 files changed, 37 insertions, 8 deletions
diff --git a/Templates/widgetsclass/QtTemplate.Item.WidgetsClass.csproj b/Templates/widgetsclass/QtTemplate.Item.WidgetsClass.csproj
index b6df4967..22157264 100644
--- a/Templates/widgetsclass/QtTemplate.Item.WidgetsClass.csproj
+++ b/Templates/widgetsclass/QtTemplate.Item.WidgetsClass.csproj
@@ -76,9 +76,45 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <!--
+ /////////////////////////////////////////////////////////////////////////////////////////////////
+ // Global references
+ // -->
<ItemGroup>
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
+ <!--
+ /////////////////////////////////////////////////////////////////////////////////////////////////
+ // General package references
+ // -->
+ <Import Project="$(SolutionDir)\references.props" />
+ <ItemGroup>
+ <PackageReference Include="$(Name_Microsoft_VSSDK_BuildTools)" Version="$(Version_Microsoft_VSSDK_BuildTools)" />
+ <PackageReference Include="$(Name_Microsoft_VisualStudio_SDK)" Version="$(Version_Microsoft_VisualStudio_SDK)" ExcludeAssets="runtime" />
+ </ItemGroup>
+ <!--
+ /////////////////////////////////////////////////////////////////////////////////////////////////
+ // Version specific package references
+ // -->
+ <Choose>
+ <When Condition="'$(VisualStudioVersion)'=='17.0'">
+ <ItemGroup>
+ </ItemGroup>
+ </When>
+ <When Condition="'$(VisualStudioVersion)'=='16.0'">
+ <ItemGroup>
+ <PackageReference Include="$(Name_Microsoft_VisualStudio_Validation)" Version="$(Version_Microsoft_VisualStudio_Validation)" />
+ </ItemGroup>
+ </When>
+ <When Condition="'$(VisualStudioVersion)'=='15.0'">
+ <ItemGroup>
+ </ItemGroup>
+ </When>
+ </Choose>
+ <!--
+ /////////////////////////////////////////////////////////////////////////////////////////////////
+ // Project items
+ // -->
<ItemGroup>
<T4Template Include="Properties\AssemblyInfo.cs">
<Generator>TextTemplatingFileGenerator</Generator>
@@ -116,13 +152,6 @@
<Content Include="widgetsclass.ico" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(SolutionDir)\transform.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
+ <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
</Project> \ No newline at end of file