Skip to content

Commit

Permalink
Backtrack to target .Net 4.6.1 since we don't need any 4.6.2 API. (NH…
Browse files Browse the repository at this point in the history
…-3877).

With .Net 4.6.2 being very new, .Net 4.6.1 currently has greater adoption.
Since we don't actually plan to use any of the new API in .Net 4.6.2, we
might as well target the older version.
  • Loading branch information
oskarb committed Dec 4, 2016
1 parent 16c1459 commit 342c3ff
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build-common/common.xml
Expand Up @@ -196,7 +196,7 @@
<property name="link.sdkdoc.version" value="SDK_v1_1" /> <property name="link.sdkdoc.version" value="SDK_v1_1" />
<!-- merge should work with 4.0 when compiling for 4.0 --> <!-- merge should work with 4.0 when compiling for 4.0 -->
<property name="merge.targetplatform" value="v4" /> <property name="merge.targetplatform" value="v4" />
<property name="referenceassemblies.dir" value="${environment::get-folder-path('ProgramFiles')}\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.2" /> <property name="referenceassemblies.dir" value="${environment::get-folder-path('ProgramFiles')}\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6.1" />
</target> </target>


<target name="set-net-3.5-framework-configuration"> <target name="set-net-3.5-framework-configuration">
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.DomainModel/NHibernate.DomainModel.csproj
Expand Up @@ -15,7 +15,7 @@
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation> <UpgradeBackupLocation>
</UpgradeBackupLocation> </UpgradeBackupLocation>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.Everything.sln
Expand Up @@ -67,7 +67,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.Test", "NHiberna
EndProject EndProject
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "NHibernate.Example.Web", "NHibernate.Example.Web\", "{C5D6EE68-1760-4F97-AD31-42343593D8C1}" Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "NHibernate.Example.Web", "NHibernate.Example.Web\", "{C5D6EE68-1760-4F97-AD31-42343593D8C1}"
ProjectSection(WebsiteProperties) = preProject ProjectSection(WebsiteProperties) = preProject
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.6.1"
ProjectReferences = "{5909BFE7-93CF-4E5F-BE22-6293368AF01D}|NHibernate.dll;" ProjectReferences = "{5909BFE7-93CF-4E5F-BE22-6293368AF01D}|NHibernate.dll;"
Debug.AspNetCompiler.VirtualPath = "/NHibernate.Example.Web" Debug.AspNetCompiler.VirtualPath = "/NHibernate.Example.Web"
Debug.AspNetCompiler.PhysicalPath = "NHibernate.Example.Web\" Debug.AspNetCompiler.PhysicalPath = "NHibernate.Example.Web\"
Expand Down
6 changes: 4 additions & 2 deletions src/NHibernate.Example.Web/Web.Config
Expand Up @@ -23,7 +23,7 @@
affects performance, set this value to true only affects performance, set this value to true only
during development. during development.
--> -->
<compilation debug="true" targetFramework="4.0"/> <compilation debug="true" targetFramework="4.6.1"/>
<!-- <!--
The <authentication> section enables configuration The <authentication> section enables configuration
of the security authentication mode used by of the security authentication mode used by
Expand All @@ -49,7 +49,9 @@
</httpModules> </httpModules>
</system.web> </system.web>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2"> <hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<bytecode-provider type="null"/><!-- Important under Medium Trust --> <!-- Important under Medium Trust -->
<bytecode-provider type="null"/>

<session-factory> <session-factory>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider, NHibernate</property> <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider, NHibernate</property>
<property name="connection.connection_string"> <property name="connection.connection_string">
Expand Down
Expand Up @@ -13,7 +13,7 @@
<AssemblyName>NHibernate.Test.VisualBasic</AssemblyName> <AssemblyName>NHibernate.Test.VisualBasic</AssemblyName>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<MyType>Windows</MyType> <MyType>Windows</MyType>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkProfile /> <TargetFrameworkProfile />
<StartAction>Program</StartAction> <StartAction>Program</StartAction>
<StartProgram>$(MSBuildProjectDirectory)\..\..\Tools\nunit\nunit-x86.exe</StartProgram> <StartProgram>$(MSBuildProjectDirectory)\..\..\Tools\nunit\nunit-x86.exe</StartProgram>
Expand Down
4 changes: 2 additions & 2 deletions src/NHibernate.Test/App.config
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>


<configSections> <configSections>
Expand Down Expand Up @@ -98,7 +98,7 @@


</log4net> </log4net>


<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup>
<runtime> <runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly> <dependentAssembly>
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.Test/NHibernate.Test.csproj
Expand Up @@ -15,7 +15,7 @@
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation> <UpgradeBackupLocation>
</UpgradeBackupLocation> </UpgradeBackupLocation>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.TestDatabaseSetup/App.config
Expand Up @@ -13,4 +13,4 @@
</property> </property>
</session-factory> </session-factory>
</hibernate-configuration> </hibernate-configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NHibernate.TestDatabaseSetup</RootNamespace> <RootNamespace>NHibernate.TestDatabaseSetup</RootNamespace>
<AssemblyName>NHibernate.TestDatabaseSetup</AssemblyName> <AssemblyName>NHibernate.TestDatabaseSetup</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<StartupObject> <StartupObject>
</StartupObject> </StartupObject>
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.Tool.HbmXsd/NHibernate.Tool.HbmXsd.csproj
Expand Up @@ -15,7 +15,7 @@
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation> <UpgradeBackupLocation>
</UpgradeBackupLocation> </UpgradeBackupLocation>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.Tool.HbmXsd/app.config
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration> <startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>
4 changes: 2 additions & 2 deletions src/NHibernate/NHibernate.csproj
Expand Up @@ -15,7 +15,7 @@
<OldToolsVersion>3.5</OldToolsVersion> <OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation> <UpgradeBackupLocation>
</UpgradeBackupLocation> </UpgradeBackupLocation>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
Expand Down Expand Up @@ -1823,4 +1823,4 @@
</GetReferenceAssemblyPaths> </GetReferenceAssemblyPaths>
<Exec Command="$(SolutionDir)..\Tools\ilrepack\ilrepack.exe /verbose /t:library /targetplatform:v4,&quot;$(_ReferenceAssembliesPath).&quot; /keyfile:$(AssemblyOriginatorKeyFile) /internalize:internalize.exclude /out:$(OutputPath)\NHibernate.dll $(IntermediateOutputPath)\NHibernate.dll $(OutputPath)\Remotion.Linq.dll $(OutputPath)\Antlr3.Runtime.dll" /> <Exec Command="$(SolutionDir)..\Tools\ilrepack\ilrepack.exe /verbose /t:library /targetplatform:v4,&quot;$(_ReferenceAssembliesPath).&quot; /keyfile:$(AssemblyOriginatorKeyFile) /internalize:internalize.exclude /out:$(OutputPath)\NHibernate.dll $(IntermediateOutputPath)\NHibernate.dll $(OutputPath)\Remotion.Linq.dll $(OutputPath)\Antlr3.Runtime.dll" />
</Target> </Target>
</Project> </Project>

0 comments on commit 342c3ff

Please sign in to comment.