1
- <?xml version =" 1.0" encoding =" utf-8" ?>
2
- <Project ToolsVersion =" 14.0" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
- <Import Project =" ..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition =" Exists('..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" />
4
- <Import Project =" $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition =" Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
5
3
<PropertyGroup >
6
- <Configuration Condition =" '$(Configuration)' == '' " >Debug</Configuration >
7
- <Platform Condition =" '$(Platform)' == '' " >AnyCPU</Platform >
8
- <ProjectGuid >{5CF365CF-85B2-4AA3-8A17-680EFDF617C5}</ProjectGuid >
9
- <OutputType >Library</OutputType >
10
- <AppDesignerFolder >Properties</AppDesignerFolder >
11
- <RootNamespace >GitTools.Testing.Tests</RootNamespace >
12
- <AssemblyName >GitTools.Testing.Tests</AssemblyName >
13
- <TargetFrameworkVersion >v4.5</TargetFrameworkVersion >
14
- <FileAlignment >512</FileAlignment >
15
- <NuGetPackageImportStamp >
16
- </NuGetPackageImportStamp >
17
- <TargetFrameworkProfile />
4
+ <TargetFrameworks >net452;netcoreapp1.0</TargetFrameworks >
5
+ <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
6
+ <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
18
7
</PropertyGroup >
19
- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
20
- <DebugSymbols >true</DebugSymbols >
21
- <DebugType >full</DebugType >
22
- <Optimize >false</Optimize >
23
- <OutputPath >bin\Debug\</OutputPath >
24
- <DefineConstants >DEBUG;TRACE</DefineConstants >
25
- <ErrorReport >prompt</ErrorReport >
26
- <WarningLevel >4</WarningLevel >
27
- <Prefer32Bit >false</Prefer32Bit >
28
- </PropertyGroup >
29
- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " >
30
- <DebugType >pdbonly</DebugType >
31
- <Optimize >true</Optimize >
32
- <OutputPath >bin\Release\</OutputPath >
33
- <DefineConstants >TRACE</DefineConstants >
34
- <ErrorReport >prompt</ErrorReport >
35
- <WarningLevel >4</WarningLevel >
36
- <Prefer32Bit >false</Prefer32Bit >
8
+
9
+ <!-- NuGet properties for creating a NuGet package.
10
+ More information: https://docs.microsoft.com/en-us/nuget/schema/msbuild-targets -->
11
+ <PropertyGroup >
12
+ <Title >GitTools.Testing</Title >
13
+ <Authors >GitTools Contributors</Authors >
14
+ <Description >Makes it easy to automate git for testing libraries which interact with git</Description >
15
+ <PackageTags >git tools testing</PackageTags >
16
+ <Copyright >Copyright GitTools 2015</Copyright >
17
+ <PackageProjectUrl >https://github.com/GitTools/GitTools.Core</PackageProjectUrl >
18
+ <PackageLicenseUrl >https://github.com/GitTools/GitTools.Core/blob/master/LICENSE</PackageLicenseUrl >
19
+ <PackageIconUrl >https://raw.github.com/GitTools/GitTools.Core/master/GitTools_logo.png</PackageIconUrl >
37
20
</PropertyGroup >
21
+
38
22
<ItemGroup >
39
- <Reference Include =" System" />
40
- <Reference Include =" System.Core" />
41
- <Reference Include =" System.Xml.Linq" />
42
- <Reference Include =" System.Data.DataSetExtensions" />
43
- <Reference Include =" Microsoft.CSharp" />
44
- <Reference Include =" System.Data" />
45
- <Reference Include =" System.Xml" />
46
- <Reference Include =" xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL" >
47
- <HintPath >..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll</HintPath >
48
- <Private >True</Private >
49
- </Reference >
50
- <Reference Include =" xunit.core, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL" >
51
- <HintPath >..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll</HintPath >
52
- <Private >True</Private >
53
- </Reference >
54
- <Reference Include =" xunit.execution.desktop, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL" >
55
- <HintPath >..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath >
56
- <Private >True</Private >
57
- </Reference >
23
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.0.0" />
24
+ <PackageReference Include =" Microsoft.TestPlatform.TestHost" Version =" 15.0.0" />
25
+ <PackageReference Include =" xunit.abstractions" Version =" 2.0.1" />
26
+ <PackageReference Include =" xunit.core" Version =" 2.3.0-beta3-build3705" />
27
+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.3.0-beta3-build3705" />
28
+ <PackageReference Include =" xunit.runner.console" Version =" 2.3.0-beta3-build3705" />
29
+ <DotNetCliToolReference Include =" dotnet-xunit" Version =" 2.3.0-beta2-build3683" />
58
30
</ItemGroup >
59
- <ItemGroup >
60
- <Compile Include =" Example.cs" />
61
- <Compile Include =" Properties\AssemblyInfo.cs" />
62
- <Compile Include =" Properties\JetBrainsAnnotations.cs" />
31
+
32
+ <ItemGroup Condition =" '$(TargetFramework)' == 'net452'" >
33
+ <PackageReference Include =" LibGit2Sharp" Version =" 0.24.0" />
63
34
</ItemGroup >
64
- <ItemGroup >
65
- <None Include =" packages.config" >
66
- <SubType >Designer</SubType >
67
- </None >
35
+
36
+ <!-- TODO: Unify this dependency with the LibGit2Sharp NuGet dependency
37
+ when the portable NuGet has been officially released. -->
38
+ <ItemGroup Condition =" '$(TargetFramework)' == 'netcoreapp1.0'" >
39
+ <PackageReference Include =" LibGit2Sharp.Portable" Version =" 0.24.10" />
68
40
</ItemGroup >
41
+
69
42
<ItemGroup >
70
- <Service Include =" {82A7F48D-3B50-4B1E-B82E-3ADA8210C358} " />
43
+ <ProjectReference Include =" ..\GitTools.Testing\GitTools.Testing.csproj " />
71
44
</ItemGroup >
45
+
72
46
<ItemGroup >
73
- <ProjectReference Include =" ..\GitTools.Testing\GitTools.Testing.csproj" >
74
- <Project >{3DCA1530-7A7F-46E4-955F-B4358F1299FA}</Project >
75
- <Name >GitTools.Testing</Name >
76
- </ProjectReference >
47
+ <Service Include =" {82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
77
48
</ItemGroup >
78
- <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
79
- <Target Name =" EnsureNuGetPackageBuildImports" BeforeTargets =" PrepareForBuild" >
80
- <PropertyGroup >
81
- <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 >
82
- </PropertyGroup >
83
- <Error Condition =" !Exists('..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" Text =" $([System.String]::Format('$(ErrorText)', '..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props'))" />
84
- </Target >
85
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
86
- Other similar extension points exist, see Microsoft.Common.targets.
87
- <Target Name="BeforeBuild">
88
- </Target>
89
- <Target Name="AfterBuild">
90
- </Target>
91
- -->
92
49
</Project >
0 commit comments