|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
2 | | -<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 | <PropertyGroup> |
4 | 4 | <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> |
5 | 5 | <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion> |
6 | | - <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
| 6 | + <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
7 | 7 | <!-- <VSSDK140Install Condition="'$(VSSDK140Install)' == ''">$(MSBuildProgramFiles32)\Microsoft Visual Studio 14.0\VSSDK\</VSSDK140Install> --> |
8 | | - <VSSDK170Install Condition="'$(VSSDK170Install)' == ''">$(MSBuildProgramFiles32)\Microsoft Visual Studio\2019\Professional\VSSDK\</VSSDK170Install> |
| 8 | + <VSSdkPath Condition="'$(VisualStudioVersion.Contains(`17`))'">$(ProgramFiles)\Microsoft Visual Studio\2022\Professional\VSSDK\</VSSdkPath> |
| 9 | + <VSSdkPath Condition="'$(VisualStudioVersion.Contains(`16`))'">$(MSBuildProgramFiles32)\Microsoft Visual Studio\2019\Professional\VSSDK\</VSSdkPath> |
9 | 10 | <VsixType>v3</VsixType> |
10 | 11 | <NuGetPackageImportStamp> |
11 | 12 | </NuGetPackageImportStamp> |
| 13 | + <TargetFrameworkProfile /> |
12 | 14 | </PropertyGroup> |
13 | 15 | <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
14 | 16 | <PropertyGroup> |
|
20 | 22 | <AppDesignerFolder>Properties</AppDesignerFolder> |
21 | 23 | <RootNamespace>UnityMixedCallStack</RootNamespace> |
22 | 24 | <AssemblyName>UnityMixedCallStack</AssemblyName> |
23 | | - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> |
| 25 | + <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
24 | 26 | <FileAlignment>512</FileAlignment> |
25 | 27 | <GeneratePkgDefFile>false</GeneratePkgDefFile> |
26 | 28 | <!--Root directory to Concord SDK install; includes the trailing backslash '\'.--> |
27 | | - <ConcordSDKDir>$(VSSDK170Install)VisualStudioIntegration\</ConcordSDKDir> |
| 29 | + <ConcordSDKDir>$(VSSdkPath)VisualStudioIntegration\</ConcordSDKDir> |
28 | 30 | </PropertyGroup> |
29 | 31 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
30 | 32 | <DebugSymbols>true</DebugSymbols> |
|
53 | 55 | <StartWorkingDirectory>$(DevEnvDir)</StartWorkingDirectory> |
54 | 56 | <StartArguments>/rootsuffix Exp</StartArguments> |
55 | 57 | </PropertyGroup> |
| 58 | + |
| 59 | + <PropertyGroup> |
| 60 | + <VsVersion Condition="'$(VisualStudioVersion.Contains(`17`))'">VS2022</VsVersion> |
| 61 | + <VsVersion Condition="'$(VisualStudioVersion.Contains(`16`))'">VS2019</VsVersion> |
| 62 | + <OutputPath>bin\$(VsVersion)\$(Configuration)\</OutputPath> |
| 63 | + <IntermediateOutputPath>obj\$(VsVersion)\$(Configuration)\</IntermediateOutputPath> |
| 64 | + </PropertyGroup> |
| 65 | + <Choose> |
| 66 | + <When Condition="'$(VsVersion)' == 'VS2022'"> |
| 67 | + <PropertyGroup> |
| 68 | + <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
| 69 | + </PropertyGroup> |
| 70 | + <ItemGroup> |
| 71 | + <PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.31902.203" /> |
| 72 | + <PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.0.5232" /> |
| 73 | + <PackageReference Include="Microsoft.VisualStudio.Debugger.Engine" Version="17.0.1110801" /> |
| 74 | + </ItemGroup> |
| 75 | + </When> |
| 76 | + <Otherwise> |
| 77 | + <PropertyGroup> |
| 78 | + <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> |
| 79 | + </PropertyGroup> |
| 80 | + <ItemGroup> |
| 81 | + <PackageReference Include="Microsoft.VisualStudio.SDK" Version="15.0.1" /> |
| 82 | + <PackageReference Include="Microsoft.VSSDK.BuildTools" Version="15.9.3039" /> |
| 83 | + <PackageReference Include="Microsoft.VisualStudio.Debugger.Engine" Version="15.9.28307" /> |
| 84 | + </ItemGroup> |
| 85 | + </Otherwise> |
| 86 | + </Choose> |
56 | 87 | <ItemGroup> |
57 | | - <Reference Include="Microsoft.VisualStudio.Shell.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" /> |
58 | | - <Reference Include="Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
59 | 88 | <Reference Include="System" /> |
60 | 89 | <Reference Include="System.Core" /> |
61 | 90 | <Reference Include="Microsoft.VisualStudio.Debugger.Engine"> |
62 | | - <HintPath>$(ConcordSDKDir)Reference Assemblies\Microsoft.VisualStudio.Debugger.Engine.dll</HintPath> |
63 | | - <Private>False</Private> |
| 91 | + <HintPath>$(ConcordSDKDir)Reference Assemblies\Microsoft.VisualStudio.Debugger.Engine.dll</HintPath> |
| 92 | + <Private>False</Private> |
64 | 93 | </Reference> |
65 | 94 | </ItemGroup> |
66 | 95 | <ItemGroup> |
|
75 | 104 | </ItemGroup> |
76 | 105 | <ItemGroup> |
77 | 106 | <None Include="source.extension.vsixmanifest"> |
78 | | - <SubType>Designer</SubType> |
| 107 | + <SubType>Designer</SubType> |
79 | 108 | </None> |
80 | | - </ItemGroup> |
81 | | - <ItemGroup> |
82 | | - <PackageReference Include="Microsoft.VisualStudio.Sdk.BuildTasks.14.0"> |
83 | | - <Version>14.9.23</Version> |
84 | | - <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
85 | | - <PrivateAssets>all</PrivateAssets> |
86 | | - </PackageReference> |
87 | | - </ItemGroup> |
| 109 | + </ItemGroup> |
88 | 110 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
89 | 111 | <Import Project="$(ConcordSDKDir)Tools\bin\Microsoft.VSSDK.Debugger.VSDConfigTool.targets" /> |
90 | 112 | <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" /> |
|
0 commit comments