|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 | +<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 | <PropertyGroup> |
4 | 4 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
5 | 5 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
| 6 | + <MinimumVisualStudioVersion>15.0</MinimumVisualStudioVersion> |
| 7 | + <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
6 | 8 | <ProjectGuid>{27C78B2A-18BC-4CE0-BCB1-DB4C30D805BE}</ProjectGuid> |
7 | 9 | <OutputType>Library</OutputType> |
8 | 10 | <AppDesignerFolder>Properties</AppDesignerFolder> |
9 | 11 | <RootNamespace>SteveCadwallader.CodeMaid.UnitTests</RootNamespace> |
10 | 12 | <AssemblyName>SteveCadwallader.CodeMaid.UnitTests</AssemblyName> |
11 | | - <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> |
| 13 | + <SignAssembly>True</SignAssembly> |
| 14 | + <AssemblyOriginatorKeyFile>..\CodeMaid.snk</AssemblyOriginatorKeyFile> |
| 15 | + <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> |
12 | 16 | <FileAlignment>512</FileAlignment> |
13 | 17 | <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
14 | | - <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> |
15 | | - <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
16 | 18 | <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath> |
17 | 19 | <IsCodedUITest>False</IsCodedUITest> |
18 | 20 | <TestProjectType>UnitTest</TestProjectType> |
19 | 21 | <LangVersion>latest</LangVersion> |
| 22 | + <NuGetPackageImportStamp> |
| 23 | + </NuGetPackageImportStamp> |
20 | 24 | </PropertyGroup> |
21 | 25 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
22 | 26 | <DebugSymbols>true</DebugSymbols> |
|
37 | 41 | <WarningLevel>4</WarningLevel> |
38 | 42 | <Prefer32Bit>false</Prefer32Bit> |
39 | 43 | </PropertyGroup> |
40 | | - <PropertyGroup> |
41 | | - <SignAssembly>true</SignAssembly> |
42 | | - <AssemblyOriginatorKeyFile>..\CodeMaid.snk</AssemblyOriginatorKeyFile> |
43 | | - </PropertyGroup> |
44 | 44 | <ItemGroup> |
45 | 45 | <Reference Include="EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
46 | 46 | <EmbedInteropTypes>False</EmbedInteropTypes> |
47 | | - <HintPath>..\packages\EnvDTE.8.0.1\lib\net10\EnvDTE.dll</HintPath> |
48 | | - <Private>True</Private> |
| 47 | + </Reference> |
| 48 | + <Reference Include="EnvDTE100, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
| 49 | + <EmbedInteropTypes>False</EmbedInteropTypes> |
49 | 50 | </Reference> |
50 | 51 | <Reference Include="EnvDTE80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
51 | 52 | <EmbedInteropTypes>False</EmbedInteropTypes> |
52 | | - <HintPath>..\packages\EnvDTE80.8.0.1\lib\net10\EnvDTE80.dll</HintPath> |
53 | | - <Private>True</Private> |
54 | 53 | </Reference> |
55 | | - <Reference Include="Microsoft.VisualStudio.OLE.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
56 | | - <SpecificVersion>False</SpecificVersion> |
57 | | - <HintPath>..\lib\Microsoft.VisualStudio.OLE.Interop.dll</HintPath> |
| 54 | + <Reference Include="EnvDTE90, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| 55 | + <EmbedInteropTypes>False</EmbedInteropTypes> |
58 | 56 | </Reference> |
| 57 | + <Reference Include="Microsoft.CSharp" /> |
59 | 58 | <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
60 | | - <SpecificVersion>False</SpecificVersion> |
61 | | - <HintPath>..\lib\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll</HintPath> |
| 59 | + <HintPath>..\packages\VS.QualityTools.UnitTestFramework.15.0.27323.2\lib\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll</HintPath> |
62 | 60 | </Reference> |
63 | | - <Reference Include="Microsoft.VisualStudio.Shell.11.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
64 | | - <SpecificVersion>False</SpecificVersion> |
65 | | - <HintPath>..\lib\Microsoft.VisualStudio.Shell.11.0.dll</HintPath> |
| 61 | + <Reference Include="Microsoft.VisualStudio.Threading, Version=15.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
| 62 | + <HintPath>..\packages\Microsoft.VisualStudio.Threading.15.8.209\lib\net46\Microsoft.VisualStudio.Threading.dll</HintPath> |
66 | 63 | </Reference> |
67 | | - <Reference Include="Microsoft.VisualStudio.Shell.Interop, Version=7.1.40304.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
68 | | - <SpecificVersion>False</SpecificVersion> |
69 | | - <HintPath>..\lib\Microsoft.VisualStudio.Shell.Interop.dll</HintPath> |
70 | | - </Reference> |
71 | | - <Reference Include="Microsoft.VisualStudio.Shell.Interop.10.0, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
72 | | - <SpecificVersion>False</SpecificVersion> |
73 | | - <EmbedInteropTypes>True</EmbedInteropTypes> |
74 | | - <HintPath>..\lib\Microsoft.VisualStudio.Shell.Interop.10.0.dll</HintPath> |
75 | | - </Reference> |
76 | | - <Reference Include="Microsoft.VisualStudio.Shell.Interop.11.0, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
77 | | - <SpecificVersion>False</SpecificVersion> |
78 | | - <EmbedInteropTypes>True</EmbedInteropTypes> |
79 | | - <HintPath>..\lib\Microsoft.VisualStudio.Shell.Interop.11.0.dll</HintPath> |
80 | | - </Reference> |
81 | | - <Reference Include="Microsoft.VisualStudio.Shell.Interop.8.0, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
82 | | - <SpecificVersion>False</SpecificVersion> |
83 | | - <HintPath>..\lib\Microsoft.VisualStudio.Shell.Interop.8.0.dll</HintPath> |
84 | | - </Reference> |
85 | | - <Reference Include="Microsoft.VisualStudio.Shell.Interop.9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
86 | | - <SpecificVersion>False</SpecificVersion> |
87 | | - <HintPath>..\lib\Microsoft.VisualStudio.Shell.Interop.9.0.dll</HintPath> |
88 | | - </Reference> |
89 | | - <Reference Include="Microsoft.VSSDK.UnitTestLibrary, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
90 | | - <SpecificVersion>False</SpecificVersion> |
91 | | - <HintPath>..\lib\Microsoft.VSSDK.UnitTestLibrary.dll</HintPath> |
| 64 | + <Reference Include="Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
| 65 | + <HintPath>..\packages\Microsoft.VisualStudio.Validation.15.3.58\lib\net45\Microsoft.VisualStudio.Validation.dll</HintPath> |
92 | 66 | </Reference> |
93 | 67 | <Reference Include="NSubstitute, Version=1.10.0.0, Culture=neutral, PublicKeyToken=92dd2e9066daa5ca, processorArchitecture=MSIL"> |
94 | 68 | <HintPath>..\packages\NSubstitute.1.10.0.0\lib\net45\NSubstitute.dll</HintPath> |
95 | 69 | <Private>True</Private> |
96 | 70 | </Reference> |
97 | | - <Reference Include="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
98 | | - <EmbedInteropTypes>True</EmbedInteropTypes> |
99 | | - <HintPath>..\packages\stdole.7.0.3301\lib\net10\stdole.dll</HintPath> |
100 | | - <Private>True</Private> |
101 | | - </Reference> |
102 | 71 | <Reference Include="System" /> |
103 | 72 | <Reference Include="System.Design" /> |
104 | | - <Reference Include="System.XML" /> |
105 | 73 | <Reference Include="System.Xml.Linq" /> |
| 74 | + <Reference Include="WindowsBase" /> |
106 | 75 | </ItemGroup> |
107 | 76 | <ItemGroup> |
108 | 77 | <Compile Include="..\GlobalAssemblyInfo.cs"> |
|
118 | 87 | <Compile Include="Formatting\XmlFormattingTests.cs" /> |
119 | 88 | <Compile Include="Formatting\ListFormattingTests.cs" /> |
120 | 89 | <Compile Include="Helpers\CodeItemTypeComparerTests.cs" /> |
121 | | - <Compile Include="Helpers\CodeMaidPackageHelper.cs" /> |
122 | 90 | <Compile Include="Helpers\SettingsMonitorTests.cs" /> |
123 | | - <Compile Include="Helpers\UIShellServiceMock.cs" /> |
124 | | - <Compile Include="Helpers\WindowFrameMock.cs" /> |
125 | | - <Compile Include="CodeMaidPackageTest.cs" /> |
126 | 91 | <Compile Include="MemberTypeSettingTests.cs" /> |
127 | 92 | <Compile Include="Properties\AssemblyInfo.cs" /> |
128 | | - <Compile Include="SpadeTest.cs" /> |
129 | 93 | </ItemGroup> |
130 | 94 | <ItemGroup> |
131 | 95 | <ProjectReference Include="..\CodeMaid\CodeMaid.csproj"> |
|
140 | 104 | <None Include="app.config" /> |
141 | 105 | <None Include="packages.config" /> |
142 | 106 | </ItemGroup> |
| 107 | + <ItemGroup> |
| 108 | + <Analyzer Include="..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.209\analyzers\cs\Microsoft.VisualStudio.Threading.Analyzers.CodeFixes.dll" /> |
| 109 | + <Analyzer Include="..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.209\analyzers\cs\Microsoft.VisualStudio.Threading.Analyzers.dll" /> |
| 110 | + </ItemGroup> |
143 | 111 | <Choose> |
144 | 112 | <When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'"> |
145 | 113 | <ItemGroup> |
|
160 | 128 | </Choose> |
161 | 129 | <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" /> |
162 | 130 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
163 | | - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
| 131 | + <Import Project="..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.209\build\Microsoft.VisualStudio.Threading.Analyzers.targets" Condition="Exists('..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.209\build\Microsoft.VisualStudio.Threading.Analyzers.targets')" /> |
| 132 | + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 133 | + <PropertyGroup> |
| 134 | + <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> |
| 135 | + </PropertyGroup> |
| 136 | + <Error Condition="!Exists('..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.209\build\Microsoft.VisualStudio.Threading.Analyzers.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.VisualStudio.Threading.Analyzers.15.8.209\build\Microsoft.VisualStudio.Threading.Analyzers.targets'))" /> |
| 137 | + </Target> |
| 138 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
164 | 139 | Other similar extension points exist, see Microsoft.Common.targets. |
165 | 140 | <Target Name="BeforeBuild"> |
166 | 141 | </Target> |
|
0 commit comments