Skip to content

Commit b3c2db3

Browse files
committed
migrated to sdk project format
1 parent 0bfb039 commit b3c2db3

File tree

9 files changed

+59
-297
lines changed

9 files changed

+59
-297
lines changed

Source/GitReleaseManager.Cli/AssemblyInfo.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 17 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
32
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProjectGuid>{F1163F09-3D4E-4F95-AF46-24C15AB297FB}</ProjectGuid>
73
<OutputType>Exe</OutputType>
8-
<AppDesignerFolder>Properties</AppDesignerFolder>
9-
<RootNamespace>GitReleaseManager.Cli</RootNamespace>
104
<AssemblyName>GitReleaseManager</AssemblyName>
11-
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<NuGetPackageImportStamp>
14-
</NuGetPackageImportStamp>
15-
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
16-
<RestorePackages>true</RestorePackages>
5+
<TargetFramework>net451</TargetFramework>
176
<BuildToolsFxCopVersion>1.0.1</BuildToolsFxCopVersion>
18-
<TargetFrameworkProfile />
197
<IsWebBootstrapper>false</IsWebBootstrapper>
208
<PublishUrl>publish\</PublishUrl>
219
<Install>true</Install>
@@ -31,63 +19,30 @@
3119
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
3220
<UseApplicationTrust>false</UseApplicationTrust>
3321
<BootstrapperEnabled>true</BootstrapperEnabled>
34-
</PropertyGroup>
35-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
36-
<PlatformTarget>AnyCPU</PlatformTarget>
37-
<DebugSymbols>true</DebugSymbols>
38-
<DebugType>full</DebugType>
39-
<Optimize>false</Optimize>
40-
<OutputPath>..\..\BuildArtifacts\</OutputPath>
41-
<DefineConstants>DEBUG;TRACE</DefineConstants>
42-
<ErrorReport>prompt</ErrorReport>
43-
<WarningLevel>4</WarningLevel>
22+
<Title>GitReleaseManager.Cli</Title>
23+
<Description>Create release notes in markdown given a GitHub milestone</Description>
4424
<RunCodeAnalysis>False</RunCodeAnalysis>
45-
<CodeAnalysisRuleSet>..\GitReleaseManager.ruleset</CodeAnalysisRuleSet>
4625
<CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
26+
<CodeAnalysisRuleSet>..\GitReleaseManager.ruleset</CodeAnalysisRuleSet>
27+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
28+
</PropertyGroup>
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
30+
<OutputPath>..\..\BuildArtifacts\</OutputPath>
4731
<RunCodeAnalysisRestore>False</RunCodeAnalysisRestore>
4832
</PropertyGroup>
49-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
50-
<PlatformTarget>AnyCPU</PlatformTarget>
51-
<DebugType>pdbonly</DebugType>
52-
<Optimize>true</Optimize>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
5334
<OutputPath>..\..\BuildArtifacts\</OutputPath>
54-
<DefineConstants>TRACE;</DefineConstants>
55-
<ErrorReport>prompt</ErrorReport>
56-
<WarningLevel>4</WarningLevel>
57-
<RunCodeAnalysis>False</RunCodeAnalysis>
58-
<CodeAnalysisRuleSet>..\GitReleaseManager.ruleset</CodeAnalysisRuleSet>
59-
<CodeAnalysisTreatWarningsAsErrors>True</CodeAnalysisTreatWarningsAsErrors>
60-
<RunCodeAnalysisRestore>true</RunCodeAnalysisRestore>
35+
<RunCodeAnalysisRestore>True</RunCodeAnalysisRestore>
6136
</PropertyGroup>
37+
<Import Project="..\..\BuildScripts\CodeAnalysis.props" Condition="Exists('..\..\BuildScripts\CodeAnalysis.props')" />
38+
<Import Project="..\..\BuildScripts\StyleCop.props" Condition="Exists('..\..\BuildScripts\StyleCop.props')" />
6239
<ItemGroup>
63-
<Reference Include="System" />
64-
<Reference Include="System.Core" />
6540
<Reference Include="System.Net.Http" />
66-
<Reference Include="System.Xml.Linq" />
6741
<Reference Include="System.Data.DataSetExtensions" />
6842
<Reference Include="Microsoft.CSharp" />
69-
<Reference Include="System.Data" />
70-
<Reference Include="System.Xml" />
71-
</ItemGroup>
72-
<ItemGroup>
73-
<Compile Include="AssemblyInfo.cs" />
74-
<Compile Include="GlobalSuppressions.cs" />
75-
<Compile Include="Options\AddAssetSubOptions.cs" />
76-
<Compile Include="Options\BaseGitHubSubOptions.cs" />
77-
<Compile Include="Options\BaseSubOptions.cs" />
78-
<Compile Include="Options\CloseSubOptions.cs" />
79-
<Compile Include="Options\CreateSubOptions.cs" />
80-
<Compile Include="Options\ExportSubOptions.cs" />
81-
<Compile Include="Options\InitSubOptions.cs" />
82-
<Compile Include="Options\MainOptions.cs" />
83-
<Compile Include="Options\PublishSubOptions.cs" />
84-
<Compile Include="Options\ShowConfigSubOptions.cs" />
85-
<Compile Include="..\SolutionInfo.cs">
86-
<Link>SolutionInfo.cs</Link>
87-
</Compile>
8843
</ItemGroup>
8944
<ItemGroup>
90-
<Compile Include="Program.cs" />
45+
<Compile Include="..\SolutionInfo.cs" Link="SolutionInfo.cs" />
9146
</ItemGroup>
9247
<ItemGroup>
9348
<CodeAnalysisDictionary Include="..\CustomDictionary.xml">
@@ -96,37 +51,10 @@
9651
</CodeAnalysisDictionary>
9752
</ItemGroup>
9853
<ItemGroup>
99-
<BootstrapperPackage Include=".NETFramework,Version=v4.5.1">
100-
<Visible>False</Visible>
101-
<ProductName>Microsoft .NET Framework 4.5.1 %28x86 and x64%29</ProductName>
102-
<Install>true</Install>
103-
</BootstrapperPackage>
104-
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
105-
<Visible>False</Visible>
106-
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
107-
<Install>false</Install>
108-
</BootstrapperPackage>
109-
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
110-
<Visible>False</Visible>
111-
<ProductName>.NET Framework 3.5 SP1</ProductName>
112-
<Install>false</Install>
113-
</BootstrapperPackage>
54+
<ProjectReference Include="..\GitReleaseManager\GitReleaseManager.Core.csproj" />
11455
</ItemGroup>
11556
<ItemGroup>
116-
<ProjectReference Include="..\GitReleaseManager\GitReleaseManager.Core.csproj">
117-
<Project>{b02a026e-ca3a-48f4-bba9-eb337b0a2035}</Project>
118-
<Name>GitReleaseManager.Core</Name>
119-
</ProjectReference>
57+
<PackageReference Include="CommandLineParser" Version="2.3.0" />
58+
<PackageReference Include="Octokit" Version="0.32.0" />
12059
</ItemGroup>
121-
<ItemGroup>
122-
<PackageReference Include="CommandLineParser">
123-
<Version>2.3.0</Version>
124-
</PackageReference>
125-
<PackageReference Include="Octokit">
126-
<Version>0.32.0</Version>
127-
</PackageReference>
128-
</ItemGroup>
129-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
130-
<Import Project="..\..\BuildScripts\CodeAnalysis.props" Condition="Exists('..\..\BuildScripts\CodeAnalysis.props')" />
131-
<Import Project="..\..\BuildScripts\StyleCop.props" Condition="Exists('..\..\BuildScripts\StyleCop.props')" />
13260
</Project>

Source/GitReleaseManager.Tests/AssemblyInfo.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 14 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,33 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{FAD045A3-CF63-48CA-BA49-8F4D79E3EF4F}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>GitReleaseManager.Tests</RootNamespace>
11-
<AssemblyName>GitReleaseManager.Tests</AssemblyName>
12-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
14-
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
15-
<RestorePackages>true</RestorePackages>
16-
<TargetFrameworkProfile />
17-
<NuGetPackageImportStamp>
18-
</NuGetPackageImportStamp>
19-
</PropertyGroup>
20-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21-
<DebugSymbols>true</DebugSymbols>
3+
<TargetFramework>net472</TargetFramework>
4+
<Title>GitReleaseManager.Tests</Title>
5+
<Description>Test Project for GitReleaseManager</Description>
226
<DebugType>full</DebugType>
23-
<Optimize>false</Optimize>
24-
<OutputPath>..\..\BuildArtifacts\</OutputPath>
25-
<DefineConstants>DEBUG;TRACE</DefineConstants>
26-
<ErrorReport>prompt</ErrorReport>
27-
<WarningLevel>4</WarningLevel>
7+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
288
</PropertyGroup>
29-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30-
<DebugType>full</DebugType>
31-
<Optimize>false</Optimize>
9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
3210
<OutputPath>..\..\BuildArtifacts\</OutputPath>
33-
<DefineConstants>TRACE</DefineConstants>
34-
<ErrorReport>prompt</ErrorReport>
35-
<WarningLevel>4</WarningLevel>
11+
<Optimize>false</Optimize>
3612
<DebugSymbols>true</DebugSymbols>
3713
</PropertyGroup>
3814
<ItemGroup>
39-
<Reference Include="System" />
40-
<Reference Include="System.Core" />
41-
<Reference Include="System.Drawing" />
42-
<Reference Include="System.Management" />
4315
<Reference Include="System.Net.Http" />
44-
<Reference Include="System.Transactions" />
4516
<Reference Include="System.Windows.Forms" />
46-
<Reference Include="System.Xml.Linq" />
4717
<Reference Include="System.Data.DataSetExtensions" />
4818
<Reference Include="Microsoft.CSharp" />
49-
<Reference Include="System.Data" />
50-
<Reference Include="System.Xml" />
51-
</ItemGroup>
52-
<ItemGroup>
53-
<Compile Include="ApprovalTestConfig.cs" />
54-
<Compile Include="AssemblyInfo.cs" />
55-
<Compile Include="ClipBoardHelper.cs" />
56-
<Compile Include="ConfigurationTests.cs" />
57-
<Compile Include="FakeGitHubClient.cs" />
58-
<Compile Include="Helper.cs" />
59-
<Compile Include="ReleaseNotesBuilderIntegrationTests.cs" />
60-
<Compile Include="ClientBuilder.cs" />
61-
<Compile Include="ReleaseNotesBuilderTests.cs" />
62-
<Compile Include="ReleaseNotesExporterTests.cs" />
63-
<Compile Include="Resources.Designer.cs">
64-
<AutoGen>True</AutoGen>
65-
<DesignTime>True</DesignTime>
66-
<DependentUpon>Resources.resx</DependentUpon>
67-
</Compile>
68-
<Compile Include="..\SolutionInfo.cs">
69-
<Link>SolutionInfo.cs</Link>
70-
</Compile>
7119
</ItemGroup>
7220
<ItemGroup>
73-
<ProjectReference Include="..\GitReleaseManager\GitReleaseManager.Core.csproj">
74-
<Project>{b02a026e-ca3a-48f4-bba9-eb337b0a2035}</Project>
75-
<Name>GitReleaseManager.Core</Name>
76-
</ProjectReference>
21+
<Compile Include="..\SolutionInfo.cs" Link="SolutionInfo.cs" />
7722
</ItemGroup>
7823
<ItemGroup>
79-
<EmbeddedResource Include="Resources.resx">
80-
<Generator>ResXFileCodeGenerator</Generator>
81-
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
82-
</EmbeddedResource>
24+
<ProjectReference Include="..\GitReleaseManager\GitReleaseManager.Core.csproj" />
8325
</ItemGroup>
8426
<ItemGroup>
85-
<PackageReference Include="AlphaFS">
86-
<Version>2.2.6</Version>
87-
</PackageReference>
88-
<PackageReference Include="ApprovalTests">
89-
<Version>3.0.18</Version>
90-
</PackageReference>
91-
<PackageReference Include="NUnit">
92-
<Version>3.11.0</Version>
93-
</PackageReference>
94-
<PackageReference Include="Octokit">
95-
<Version>0.32.0</Version>
96-
</PackageReference>
27+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
28+
<PackageReference Include="ApprovalTests" Version="3.0.18" />
29+
<PackageReference Include="NUnit" Version="3.11.0" />
30+
<PackageReference Include="NUnit3TestAdapter" Version="3.11.2" />
31+
<PackageReference Include="Octokit" Version="0.32.0" />
9732
</ItemGroup>
98-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
9933
</Project>

Source/GitReleaseManager/AssemblyInfo.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)