Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 4a2eba6

Browse files
committed
Fix SLN
VS requires TargetFramework to be in the project file rather than in a props file, otherwise it triggers a project upgrade.
1 parent 2aab0f8 commit 4a2eba6

File tree

11 files changed

+25
-8
lines changed

11 files changed

+25
-8
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ bld/
2222
msbuild.log
2323
*.binlog
2424

25+
.vs/
26+
2527
# Roslyn stuff
2628
*.sln.ide
2729
*.ide/

Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$(MSBuildThisFileDirectory)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
55
<BaseOutputPath Condition="'$(BaseOutputPath)' == ''">$(MSBuildThisFileDirectory)bin\$(MSBuildProjectName)\</BaseOutputPath>
6-
<TargetFramework Condition="'$(TargetFramework)' == ''">net46</TargetFramework>
76
<Authors Condition="'$(Authors)' == ''">Microsoft Corporation</Authors>
87
</PropertyGroup>
98
</Project>

src/CodeFormatter.sln

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.31101.0
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27616.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.DotNet.CodeFormatting", "Microsoft.DotNet.CodeFormatting\Microsoft.DotNet.CodeFormatting.csproj", "{D535641F-A2D7-481C-930D-96C02F052B95}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeFormatter", "CodeFormatter\CodeFormatter.csproj", "{B0E1A988-F762-459D-AD0D-56A3CF4FFF3F}"
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.DotNet.CodeFormatting.Tests", "Microsoft.DotNet.CodeFormatting.Tests\Microsoft.DotNet.CodeFormatting.Tests.csproj", "{D4D6FF88-0586-43C7-BDE4-D336EB25E7AA}"
1111
EndProject
12-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{34034F12-9FB5-4154-91DA-7914B7D013BD}"
13-
ProjectSection(SolutionItems) = preProject
14-
.nuget\packages.config = .nuget\packages.config
15-
EndProjectSection
16-
EndProject
1712
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XUnitConverter", "XUnitConverter\XUnitConverter.csproj", "{81B0FF57-C128-4F6B-83C7-94DBAF261582}"
1813
EndProject
1914
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XUnitConverter.Tests", "XUnitConverter.Tests\XUnitConverter.Tests.csproj", "{BA4C1700-8A72-4F33-AF67-0E60F324E521}"
@@ -66,4 +61,7 @@ Global
6661
GlobalSection(SolutionProperties) = preSolution
6762
HideSolutionNode = FALSE
6863
EndGlobalSection
64+
GlobalSection(ExtensibilityGlobals) = postSolution
65+
SolutionGuid = {641F7536-D98F-4D5C-AF9F-1B24FC80BAED}
66+
EndGlobalSection
6967
EndGlobal

src/CodeFormatter/CodeFormatter.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4+
<TargetFramework>net46</TargetFramework>
45
</PropertyGroup>
56
<ItemGroup>
67
<Content Include="CopyrightHeader.md">

src/DeadRegions/DeadRegions.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4+
<TargetFramework>net46</TargetFramework>
45
</PropertyGroup>
56
<ItemGroup>
67
<ProjectReference Include="..\Microsoft.DotNet.DeadRegionAnalysis\Microsoft.DotNet.DeadRegionAnalysis.csproj" />

src/Microsoft.DotNet.CodeFormatting.Tests/Microsoft.DotNet.CodeFormatting.Tests.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net46</TargetFramework>
4+
</PropertyGroup>
25
<ItemGroup>
36
<None Include="..\CodeFormatter\IllegalHeaders.md">
47
<Link>IllegalHeaders.md</Link>

src/Microsoft.DotNet.CodeFormatting/Microsoft.DotNet.CodeFormatting.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net46</TargetFramework>
4+
</PropertyGroup>
25
<ItemGroup>
36
<PackageReference Include="Microsoft.Build" Version="15.7.179" />
47
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.7.179" />

src/Microsoft.DotNet.DeadRegionAnalysis.Tests/Microsoft.DotNet.DeadRegionAnalysis.Tests.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net46</TargetFramework>
4+
</PropertyGroup>
25
<ItemGroup>
36
<ProjectReference Include="..\Microsoft.DotNet.DeadRegionAnalysis\Microsoft.DotNet.DeadRegionAnalysis.csproj" />
47
<PackageReference Include="xunit" Version="2.4.0" />

src/Microsoft.DotNet.DeadRegionAnalysis/Microsoft.DotNet.DeadRegionAnalysis.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net46</TargetFramework>
4+
</PropertyGroup>
25
<ItemGroup>
36
<PackageReference Include="Microsoft.Build" Version="15.7.179" />
47
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="15.7.179" />

src/XUnitConverter.Tests/XUnitConverter.Tests.csproj

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net46</TargetFramework>
4+
</PropertyGroup>
25
<ItemGroup>
36
<ProjectReference Include="..\XUnitConverter\XUnitConverter.csproj" />
47
<PackageReference Include="xunit" Version="2.4.0" />

src/XUnitConverter/XUnitConverter.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4+
<TargetFramework>net46</TargetFramework>
45
</PropertyGroup>
56
<ItemGroup>
67
<Content Include="MSTestNamespaces.txt" />

0 commit comments

Comments
 (0)