Skip to content

Commit

Permalink
TargetFrameworkVersion will be embedded in .*proj files instead of xb…
Browse files Browse the repository at this point in the history
…uild calls
  • Loading branch information
hcorg committed Jan 21, 2020
1 parent 0794981 commit 9214725
Show file tree
Hide file tree
Showing 22 changed files with 48 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ os: osx
language: csharp
script:
- nuget restore
- xbuild /p:TargetFrameworkVersion="v4.5"
- xbuild
3 changes: 2 additions & 1 deletion Antlr/Antlr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Antlr</RootNamespace>
<AssemblyName>Antlr</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
8 changes: 4 additions & 4 deletions Asn1f4/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
3 changes: 2 additions & 1 deletion Asn1f4/Asn1f4.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
<OutputType>Exe</OutputType>
<RootNamespace>Asn1f4</RootNamespace>
<AssemblyName>Asn1f4</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>Asn1f4</Name>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
5 changes: 3 additions & 2 deletions BackendAst/BackendAst.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
<OutputType>Library</OutputType>
<RootNamespace>BackendAst</RootNamespace>
<AssemblyName>BackendAst</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>BackendAst</Name>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion CommonTypes/CommonTypes.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>CommonTypes</RootNamespace>
<AssemblyName>CommonTypes</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>CommonTypes</Name>
Expand Down
8 changes: 4 additions & 4 deletions Daemon.ExampleClient/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
5 changes: 3 additions & 2 deletions Daemon.ExampleClient/Daemon.ExampleClient.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
<OutputType>Exe</OutputType>
<RootNamespace>Daemon.ExampleClient</RootNamespace>
<AssemblyName>Daemon.ExampleClient</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<UseStandardResourceNames>true</UseStandardResourceNames>
<TargetFSharpCoreVersion>4.4.1.0</TargetFSharpCoreVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<Name>Daemon.ExampleClient</Name>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion Daemon/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
</configuration>
3 changes: 2 additions & 1 deletion Daemon/Daemon.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
<OutputType>Exe</OutputType>
<RootNamespace>Daemon</RootNamespace>
<AssemblyName>Daemon</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<UseStandardResourceNames>true</UseStandardResourceNames>
<TargetFSharpCoreVersion>4.4.1.0</TargetFSharpCoreVersion>
<Name>Daemon</Name>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.runtime
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ RUN set -ex ;\
git clone https://github.com/ttsiodras/asn1scc.git ;\
cd asn1scc/ ;\
nuget restore ;\
xbuild /p:TargetFrameworkVersion="v4.5" ;\
xbuild /p:Configuration=Release /p:TargetFrameworkVersion="v4.5" ;\
xbuild ;\
xbuild /p:Configuration=Release ;\
cd /tmp ;\
mkdir asn1install ;\
cd asn1install ;\
Expand Down
2 changes: 1 addition & 1 deletion FrontEndAst/FrontEndAst.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>FrontEndAst</RootNamespace>
<AssemblyName>FrontEndAst</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>FrontEndAst</Name>
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all:
nuget restore
xbuild /p:TargetFrameworkVersion="v4.5" || exit 1
xbuild || exit 1
chmod +x Asn1f?/bin/Debug/*.exe
rm -f Asn1f4/bin/Debug/asn1.exe
cp Asn1f4/bin/Debug/Asn1f4.exe Asn1f4/bin/Debug/asn1.exe
2 changes: 1 addition & 1 deletion Makefile.Release
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
all:
nuget restore
xbuild /p:Configuration=Release /p:TargetFrameworkVersion="v4.5" || exit 1
xbuild /p:Configuration=Release || exit 1
chmod +x Asn1f?/bin/Release/*.exe
rm -f Asn1f4/bin/Release/asn1.exe
cp Asn1f4/bin/Release/Asn1f4.exe Asn1f4/bin/Release/asn1.exe
5 changes: 3 additions & 2 deletions ST/ST.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
<RootNamespace>ST</RootNamespace>
<AssemblyName>ST</AssemblyName>
<Name>ST</Name>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -95,4 +96,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
5 changes: 3 additions & 2 deletions Service.Implementation/Service.Implementation.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
<RootNamespace>Service.Implementation</RootNamespace>
<AssemblyName>Service.Implementation</AssemblyName>
<UseStandardResourceNames>true</UseStandardResourceNames>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.1.0</TargetFSharpCoreVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>Service.Implementation</Name>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
5 changes: 3 additions & 2 deletions Service/Service.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
<RootNamespace>Service</RootNamespace>
<AssemblyName>Service</AssemblyName>
<UseStandardResourceNames>true</UseStandardResourceNames>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.1.0</TargetFSharpCoreVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>Service</Name>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
2 changes: 1 addition & 1 deletion StgAda/StgAda.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>StgAda</RootNamespace>
<AssemblyName>StgAda</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>StgAda</Name>
Expand Down
2 changes: 1 addition & 1 deletion StgC/StgC.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>StgC</RootNamespace>
<AssemblyName>StgC</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>StgC</Name>
Expand Down
2 changes: 1 addition & 1 deletion StgVarious/StgVarious.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>StgVarious</RootNamespace>
<AssemblyName>StgVarious</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFSharpCoreVersion>4.4.0.0</TargetFSharpCoreVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Name>StgVarious</Name>
Expand Down
3 changes: 3 additions & 0 deletions parseStg2/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
6 changes: 5 additions & 1 deletion parseStg2/parseStg2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>parseStg2</RootNamespace>
<AssemblyName>parseStg2</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -44,6 +45,9 @@
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit 9214725

Please sign in to comment.