|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <Import Project="..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props" Condition="Exists('..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props')" /> |
3 | 4 | <PropertyGroup> |
4 | 5 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
5 | 6 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|
8 | 9 | <AppDesignerFolder>Properties</AppDesignerFolder> |
9 | 10 | <RootNamespace>SampleCodeTest</RootNamespace> |
10 | 11 | <AssemblyName>SampleCodeTest</AssemblyName> |
11 | | - <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> |
| 12 | + <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> |
12 | 13 | <FileAlignment>512</FileAlignment> |
13 | 14 | <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
14 | 15 | <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> |
|
17 | 18 | <IsCodedUITest>False</IsCodedUITest> |
18 | 19 | <TestProjectType>UnitTest</TestProjectType> |
19 | 20 | <TargetFrameworkProfile /> |
| 21 | + <NuGetPackageImportStamp> |
| 22 | + </NuGetPackageImportStamp> |
20 | 23 | </PropertyGroup> |
21 | 24 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
22 | 25 | <DebugSymbols>true</DebugSymbols> |
|
42 | 45 | <HintPath>..\packages\AuthorizeNet.2.0.3\lib\AuthorizeNet.dll</HintPath> |
43 | 46 | </Reference> |
44 | 47 | <Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> |
45 | | - <SpecificVersion>False</SpecificVersion> |
46 | | - <HintPath>..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath> |
| 48 | + <HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath> |
47 | 49 | </Reference> |
48 | 50 | <Reference Include="System" /> |
49 | 51 | <Reference Include="System.Core"> |
|
72 | 74 | <ItemGroup> |
73 | 75 | <Content Include="SampleCodeList.txt" /> |
74 | 76 | </ItemGroup> |
| 77 | + <ItemGroup> |
| 78 | + <None Include="packages.config" /> |
| 79 | + </ItemGroup> |
75 | 80 | <Choose> |
76 | 81 | <When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'"> |
77 | 82 | <ItemGroup> |
|
92 | 97 | </Choose> |
93 | 98 | <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" /> |
94 | 99 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
| 100 | + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 101 | + <PropertyGroup> |
| 102 | + <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> |
| 103 | + </PropertyGroup> |
| 104 | + <Error Condition="!Exists('..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props'))" /> |
| 105 | + </Target> |
95 | 106 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
96 | 107 | Other similar extension points exist, see Microsoft.Common.targets. |
97 | 108 | <Target Name="BeforeBuild"> |
|
0 commit comments