Skip to content

Commit

Permalink
Centralise framework target version to .props
Browse files Browse the repository at this point in the history
  • Loading branch information
James A Sutherland committed Jan 10, 2025
1 parent aeb4de2 commit 635fb42
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<Project>
<PropertyGroup>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>
</Project>
4 changes: 0 additions & 4 deletions Repopulator/Repopulator.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectGuid>3b0e5ac1-5439-470c-832d-7de566b22cd8</ProjectGuid>
<TargetFramework>net8.0</TargetFramework>
<AssemblyTitle>Repopulator</AssemblyTitle>
<Product>Repopulator</Product>
<Copyright>Copyright © 2019</Copyright>
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
<ItemGroup>
<Content Include="..\TemplateBuilder\NLog.config" Link="NLog.config" />
</ItemGroup>
Expand Down
7 changes: 0 additions & 7 deletions RepopulatorCli/RepopulatorCli.csproj
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>RepopulatorCli</AssemblyName>
<DebugType>embedded</DebugType>
</PropertyGroup>

<ItemGroup>
<None Remove="NLog.config" />
</ItemGroup>

<ItemGroup>
<Content Include="NLog.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Repopulator\Repopulator.csproj" />
</ItemGroup>

</Project>
8 changes: 1 addition & 7 deletions TemplateBuilder/TemplateBuilder.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>$(TargetFramework)-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
Expand All @@ -14,12 +14,6 @@
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<None Remove="NLog.config" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectGuid>{66EED857-25C6-4FF9-967A-333CB151DF0B}</ProjectGuid>
<TargetFramework>net8.0</TargetFramework>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
Expand Down

0 comments on commit 635fb42

Please sign in to comment.