Skip to content

Commit

Permalink
fix: Using singular target framework to allow for different platforms…
Browse files Browse the repository at this point in the history
… across different projects
  • Loading branch information
twpol committed Jul 31, 2024
1 parent 433d161 commit c35be87
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions Source/ContentChecker/ContentChecker.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Exe</OutputType>
<UseWindowsForms>true</UseWindowsForms>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>WinExe</OutputType>
<AssemblyName>Contrib.ActivityEditor</AssemblyName>
<ApplicationIcon>..\..\..\ORTS.ico</ApplicationIcon>
Expand Down
4 changes: 2 additions & 2 deletions Source/Contrib/ActivityEditor/LibAE/LibAE.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<AssemblyName>Contrib.LibAE</AssemblyName>
<IsPublishable>False</IsPublishable>
Expand Down
4 changes: 2 additions & 2 deletions Source/Contrib/ContentManager/ContentManager.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>ORTS.ContentManager</RootNamespace>
<AssemblyName>Contrib.ContentManager</AssemblyName>
Expand Down
4 changes: 2 additions & 2 deletions Source/Contrib/DataCollector/DataCollector.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Exe</OutputType>
<RootNamespace>ORTS.DataCollector</RootNamespace>
<AssemblyName>Contrib.DataCollector</AssemblyName>
Expand Down
4 changes: 2 additions & 2 deletions Source/Contrib/DataConverter/DataConverter.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Exe</OutputType>
<RootNamespace>Orts.DataConverter</RootNamespace>
<AssemblyName>Contrib.DataConverter</AssemblyName>
Expand Down
4 changes: 2 additions & 2 deletions Source/Contrib/DataValidator/DataValidator.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Exe</OutputType>
<AssemblyName>Contrib.DataValidator</AssemblyName>
<IsPublishable>False</IsPublishable>
Expand Down
4 changes: 2 additions & 2 deletions Source/Contrib/SimulatorTester/SimulatorTester.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Exe</OutputType>
<RootNamespace>Orts.SimulatorTester</RootNamespace>
<AssemblyName>Contrib.SimulatorTester</AssemblyName>
Expand Down
4 changes: 2 additions & 2 deletions Source/Contrib/TrackViewer/TrackViewer.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>ORTS.TrackViewer</RootNamespace>
<AssemblyName>Contrib.TrackViewer</AssemblyName>
Expand Down
4 changes: 2 additions & 2 deletions Source/Launcher/Launcher.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net20</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net20</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>ORTS</RootNamespace>
<AssemblyName>OpenRails</AssemblyName>
Expand Down
4 changes: 2 additions & 2 deletions Source/Menu/Menu.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>ORTS</RootNamespace>
<ApplicationIcon>..\ORTS.ico</ApplicationIcon>
Expand Down
4 changes: 2 additions & 2 deletions Source/ORTS.Common/ORTS.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<UseWindowsForms>true</UseWindowsForms>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
Expand Down
4 changes: 2 additions & 2 deletions Source/ORTS.Content/ORTS.Content.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails Content Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/ORTS.IO/ORTS.IO.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails IO Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/ORTS.Menu/ORTS.Menu.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails Menu Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/ORTS.Settings/ORTS.Settings.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
Expand Down
4 changes: 2 additions & 2 deletions Source/ORTS.Updater/ORTS.Updater.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>Library</OutputType>
<UseWindowsForms>true</UseWindowsForms>
Expand Down
4 changes: 2 additions & 2 deletions Source/Orts.Formats.Msts/Orts.Formats.Msts.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails MSTS Formats Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/Orts.Formats.OR/Orts.Formats.OR.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails OR Formats Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/Orts.Parsers.Msts/Orts.Parsers.Msts.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails MSTS Parsers Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/Orts.Parsers.OR/Orts.Parsers.OR.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails OR Parsers Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/Orts.Simulation/Orts.Simulation.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails Simulation Library</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/RunActivity/RunActivity.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>Orts</RootNamespace>
<ApplicationIcon>..\ORTS.ico</ApplicationIcon>
Expand Down
4 changes: 2 additions & 2 deletions Source/Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>Library</OutputType>
<IsPublishable>False</IsPublishable>
<AssemblyTitle>Open Rails Tests</AssemblyTitle>
Expand Down
4 changes: 2 additions & 2 deletions Source/Updater/Updater.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFrameworks>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net472</TargetFrameworks>
<TargetFramework Condition="'$(BuildDotNet)' == 'true'">net6-windows</TargetFramework>
<TargetFramework Condition="'$(TargetFramework)' == ''">net472</TargetFramework>
<OutputType>WinExe</OutputType>
<ApplicationIcon>..\ORTS.ico</ApplicationIcon>
<UseWindowsForms>true</UseWindowsForms>
Expand Down

0 comments on commit c35be87

Please sign in to comment.