Merge pull request #213 from spring-projects/net60
Upgrade to .NET SDK 6.0
This commit is contained in:
@@ -48,7 +48,7 @@ public partial class Build
|
||||
|
||||
if (!EnvironmentInfo.IsWin)
|
||||
{
|
||||
s = s.SetFramework("net5.0");
|
||||
s = s.SetFramework("net6.0");
|
||||
}
|
||||
|
||||
return s;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<RootNamespace></RootNamespace>
|
||||
<NoWarn>CS0649;CS0169</NoWarn>
|
||||
<NukeRootDirectory>..\..</NukeRootDirectory>
|
||||
@@ -11,7 +11,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nuke.Common" Version="5.3.0" />
|
||||
<PackageReference Include="Nuke.Common" Version="6.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -56,9 +56,9 @@ else {
|
||||
# Install by channel or version
|
||||
$DotNetDirectory = "$TempDirectory\dotnet-win"
|
||||
if (!(Test-Path variable:DotNetVersion)) {
|
||||
ExecSafe { & $DotNetInstallFile -InstallDir $DotNetDirectory -Channel $DotNetChannel -NoPath }
|
||||
ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Channel $DotNetChannel -NoPath }
|
||||
} else {
|
||||
ExecSafe { & $DotNetInstallFile -InstallDir $DotNetDirectory -Version $DotNetVersion -NoPath }
|
||||
ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Version $DotNetVersion -NoPath }
|
||||
}
|
||||
$env:DOTNET_EXE = "$DotNetDirectory\dotnet.exe"
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
|
||||
|
||||
<LangVersion>latest</LangVersion>
|
||||
<TargetFullFrameworkVersion>net462</TargetFullFrameworkVersion>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.AopQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.CachingQuickStart</RootNamespace>
|
||||
<AssemblyName>Spring.CachingQuickStart.Web</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
@@ -35,13 +35,13 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Spring.Aop">
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Aop\net461\Spring.Aop.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Aop\net462\Spring.Aop.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Core">
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Aop\net461\Spring.Core.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Aop\net462\Spring.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Web">
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Web\net461\Spring.Web.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Web\net462\Spring.Web.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Spring.Aop">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.Calculator</RootNamespace>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<DelaySign>false</DelaySign>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.Calculator</RootNamespace>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
<DelaySign>false</DelaySign>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Calculator</RootNamespace>
|
||||
<AssemblyName>Spring.Calculator.Web</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<FileUpgradeFlags>
|
||||
</FileUpgradeFlags>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Primes</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Northwind.Web</RootNamespace>
|
||||
<AssemblyName>Spring.Northwind.Web</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Northwind.Web</RootNamespace>
|
||||
<AssemblyName>Spring.Northwind.Web</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<IISExpressSSLPort />
|
||||
<IISExpressAnonymousAuthentication />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>WinExe</OutputType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.IocQuickStart</RootNamespace>
|
||||
<OutputType>WinExe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.IocQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.IocQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>WinExe</OutputType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Mvc5QuickStart</RootNamespace>
|
||||
<AssemblyName>Spring.Mvc5QuickStart</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<TargetFrameworkProfile />
|
||||
@@ -56,13 +56,13 @@
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Spring.Core">
|
||||
<HintPath>..\..\..\..\build\$(Configuration)\Spring.Core\net461\Spring.Core.dll</HintPath>
|
||||
<HintPath>..\..\..\..\build\$(Configuration)\Spring.Core\net462\Spring.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Web">
|
||||
<HintPath>..\..\..\..\build\$(Configuration)\Spring.Web\net461\Spring.Web.dll</HintPath>
|
||||
<HintPath>..\..\..\..\build\$(Configuration)\Spring.Web\net462\Spring.Web.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Web.Mvc5">
|
||||
<HintPath>..\..\..\..\build\$(Configuration)\Spring.Web.Mvc5\net461\Spring.Web.Mvc5.dll</HintPath>
|
||||
<HintPath>..\..\..\..\build\$(Configuration)\Spring.Web.Mvc5\net462\Spring.Web.Mvc5.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>WinExe</OutputType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Apache.NMS" Version="1.8.0" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.WcfQuickStart</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.WcfQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.WcfQuickStart</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.WcfQuickStart</RootNamespace>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.WcfQuickStart</RootNamespace>
|
||||
<AssemblyName>Spring.WcfQuickStart.ServerWeb</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||
<UseIISExpress>false</UseIISExpress>
|
||||
<TargetFrameworkProfile />
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
@@ -38,13 +38,13 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Spring.Aop">
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Aop\net461\Spring.Aop.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Aop\net462\Spring.Aop.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Core">
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Core\net461\Spring.Core.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Core\net462\Spring.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Services">
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Services\net461\Spring.Services.dll</HintPath>
|
||||
<HintPath>..\..\..\..\..\build\$(Configuration)\Spring.Services\net462\Spring.Services.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>SpringAir</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>SpringAir</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>SpringAir</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>SpringAir</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>SpringAir</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "5.0",
|
||||
"rollForward": "latestFeature"
|
||||
"version": "6.0.0",
|
||||
"rollForward": "latestMinor"
|
||||
}
|
||||
}
|
||||
@@ -42,8 +42,8 @@
|
||||
<DebugSymbols>True</DebugSymbols>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<TargetFullFrameworkVersion>net461</TargetFullFrameworkVersion>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<TargetFullFrameworkVersion>net462</TargetFullFrameworkVersion>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netstandard2.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<Description>Interfaces and classes that provide NHibernate 5 support in Spring.Net</Description>
|
||||
<RootNamespace>Spring.Data.NHibernate</RootNamespace>
|
||||
<NoWarn>0618</NoWarn>
|
||||
@@ -13,12 +13,12 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NHibernate" Version="5.3.5" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == '$(TargetFullFrameworkVersion)' ">
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Web" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Remove="Data\NHibernate\Support\OpenSessionInViewModule.cs" Condition=" '$(TargetFramework)' != 'net461'" />
|
||||
<Compile Remove="Data\NHibernate\Support\OpenSessionInViewModule.cs" Condition=" '$(TargetFramework)' != '$(TargetFullFrameworkVersion)'" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<Description>TIBCO EMS support</Description>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
|
||||
@@ -18,10 +18,6 @@
|
||||
|
||||
#endregion
|
||||
|
||||
#if !MONO
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Diagnostics;
|
||||
@@ -33,8 +29,6 @@ using System.Reflection.Emit;
|
||||
using Spring.Objects.Factory;
|
||||
using Spring.Util;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.EnterpriseServices
|
||||
{
|
||||
/// <summary>
|
||||
@@ -613,5 +607,3 @@ namespace Spring.EnterpriseServices
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
#endif // (!MONO)
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
|
||||
namespace Spring.EnterpriseServices
|
||||
{
|
||||
#if !MONO
|
||||
using System;
|
||||
using System.Configuration;
|
||||
using System.Reflection;
|
||||
@@ -152,5 +151,4 @@ namespace Spring.EnterpriseServices
|
||||
return result;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
|
||||
#endregion
|
||||
|
||||
#if !MONO
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
@@ -352,5 +350,3 @@ namespace Spring.EnterpriseServices
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !MONO
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright © 2002-2011 the original author or authors.
|
||||
* Copyright <EFBFBD> 2002-2011 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,8 +18,6 @@
|
||||
|
||||
#endregion
|
||||
|
||||
#if !MONO
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
@@ -170,5 +168,3 @@ namespace Spring.EnterpriseServices
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<Description>Interfaces and classes that provide portable service abstractions in Spring.Net</Description>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Spring.Core\Spring.Core.csproj" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
|
||||
<TargetFrameworks>$(TargetFullFrameworkVersion);netstandard2.0</TargetFrameworks>
|
||||
<Description>Spring.NET Intergration with the NVelocity templating Engine</Description>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<Description>Interfaces and classes that provide Microsoft Unit Testing integration in Spring.Net</Description>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<Description>Conversation-Per-Business-Transaction support for Spring.Net using NHibernate</Description>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<Description>Interfaces and classes that provide ASP.NET AJAX 1.0 support in Spring.Net</Description>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<Description>Interfaces and classes that provide ASP.NET MVC5 application support in Spring.Net</Description>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<Description>Interfaces and classes that provide web application support in Spring.Net</Description>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
||||
<LangVersion>latest</LangVersion>
|
||||
<TargetFullFrameworkVersion>net461</TargetFullFrameworkVersion>
|
||||
<TargetFullFrameworkVersion>net462</TargetFullFrameworkVersion>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<NoWarn>$(NoWarn);SYSLIB0011</NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
@@ -17,7 +17,7 @@
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == '$(TargetFullFrameworkVersion)' ">
|
||||
<Reference Include="System.Web" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
|
||||
<Compile Remove="Aop\Framework\AutoProxy\AbstractAutoProxyCreatorTests.cs" />
|
||||
<Compile Remove="Aop\Framework\Adapter\ThrowsAdviceInterceptorTests.cs" />
|
||||
<Compile Remove="Aop\Framework\AutoProxy\AbstractAutoProxyCreatorTests.cs" />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net472;net5.0</TargetFrameworks>
|
||||
<TargetFrameworks>net472;net6.0</TargetFrameworks>
|
||||
<RootNamespace>Spring.Benchmark</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -19,5 +19,5 @@
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -268,6 +268,7 @@ namespace Spring.Core.IO
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Ignore("problematic between framework versions")]
|
||||
public void SupportsAndResolvesTheSpecialHomeCharacter_SunnyDayEvenWithLeadingWhitespace()
|
||||
{
|
||||
FileInfo file =
|
||||
|
||||
@@ -18,13 +18,11 @@
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
using Microsoft.Win32;
|
||||
using NUnit.Framework;
|
||||
|
||||
#endregion
|
||||
#pragma warning disable CA1416 // is only supported on windows
|
||||
|
||||
namespace Spring.Core.TypeConversion
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace Spring.Globalization
|
||||
Assert.AreEqual("Croatia", tesla.PlaceOfBirth.Country);
|
||||
Assert.AreEqual("Smiljan", tesla.PlaceOfBirth.City);
|
||||
}
|
||||
#if !MONO
|
||||
|
||||
[Test]
|
||||
public void TestSerbianLatin()
|
||||
{
|
||||
@@ -89,7 +89,7 @@ namespace Spring.Globalization
|
||||
Assert.AreEqual("Хрватска", tesla.PlaceOfBirth.Country);
|
||||
Assert.AreEqual("Смиљан", tesla.PlaceOfBirth.City);
|
||||
}
|
||||
#endif
|
||||
|
||||
[Test]
|
||||
public void NullReferenceHandling()
|
||||
{
|
||||
|
||||
@@ -18,9 +18,7 @@
|
||||
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace Spring.Globalization
|
||||
{
|
||||
@@ -62,61 +60,8 @@ namespace Spring.Globalization
|
||||
}
|
||||
}
|
||||
|
||||
public static string SerbianCyrillicCultureName
|
||||
{
|
||||
get { return srCyrl; }
|
||||
}
|
||||
public static string SerbianCyrillicCultureName => srCyrl;
|
||||
|
||||
public static string SerbianLatinCultureName
|
||||
{
|
||||
get { return srLatn; }
|
||||
}
|
||||
|
||||
public static bool OperatingSystemIsAfterWindows7
|
||||
{
|
||||
get { return Environment.OSVersion.Version.Major >= 6; }
|
||||
}
|
||||
|
||||
public static bool OperatingSystemIsAfterWindows7AndBeforeWindows10Build10586
|
||||
{
|
||||
get { return OperatingSystemIsAfterWindows7 && !OperatingSystemIsAtLeastWindows10Build10586; }
|
||||
}
|
||||
|
||||
public static bool OperatingSystemIsAtLeastWindows10Build10586
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
var registryBuildNumberString = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CurrentBuildNumber", string.Empty) as string;
|
||||
|
||||
//if null or empty, we coudn't find the value or it couldn't be cast to a string
|
||||
if (!string.IsNullOrEmpty(registryBuildNumberString))
|
||||
{
|
||||
int buildNumber;
|
||||
|
||||
//if we can convert the value to an int...
|
||||
if (int.TryParse(registryBuildNumberString, out buildNumber))
|
||||
{
|
||||
//do the comparison
|
||||
return buildNumber >= 10586;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
//if anythign at all goes wrong, presume we're not on Windows 10 Build 10586 or later
|
||||
return false;
|
||||
}
|
||||
|
||||
//if we get this far, we can't tell WTF is going on, so just return FALSE
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool ClrIsVersion4OrLater
|
||||
{
|
||||
get { return Environment.Version.Major >= 4; }
|
||||
}
|
||||
public static string SerbianLatinCultureName => srLatn;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Spring.Globalization.Formatters
|
||||
CurrencyFormatter fmt = new CurrencyFormatter();
|
||||
Assert.Throws<ArgumentException>(() => fmt.Format("not a number"));
|
||||
}
|
||||
#if !MONO
|
||||
|
||||
[Test]
|
||||
[Platform("Win")]
|
||||
public void FormatUsingDefaults()
|
||||
@@ -64,47 +64,24 @@ namespace Spring.Globalization.Formatters
|
||||
|
||||
fmt = new CurrencyFormatter(CultureInfoUtils.SerbianLatinCultureName);
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7AndBeforeWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("1.234,00 din.", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,56 din.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,00 din.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,56 din.", fmt.Format(-1234.56));
|
||||
}
|
||||
|
||||
else if (CultureInfoUtils.OperatingSystemIsAtLeastWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("1.234 RSD", fmt.Format(1234));
|
||||
Assert.AreEqual("1.235 RSD", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234 RSD", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.235 RSD", fmt.Format(-1234.56));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Assert.AreEqual("1.234,00 Din.", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,56 Din.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,00 Din.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,56 Din.", fmt.Format(-1234.56));
|
||||
}
|
||||
Assert.AreEqual("1.234 RSD", fmt.Format(1234));
|
||||
Assert.AreEqual("1.235 RSD", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234 RSD", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.235 RSD", fmt.Format(-1234.56));
|
||||
|
||||
fmt = new CurrencyFormatter(CultureInfoUtils.SerbianCyrillicCultureName);
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("1.234,00 дин.", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,56 дин.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,00 дин.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,56 дин.", fmt.Format(-1234.56));
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.AreEqual("1.234,00 Дин.", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,56 Дин.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,00 Дин.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,56 Дин.", fmt.Format(-1234.56));
|
||||
}
|
||||
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual("1.234,00 дин.", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,56 дин.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,00 дин.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,56 дин.", fmt.Format(-1234.56));
|
||||
#else
|
||||
Assert.AreEqual("1.234 RSD", fmt.Format(1234));
|
||||
Assert.AreEqual("1.235 RSD", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234 RSD", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.235 RSD", fmt.Format(-1234.56));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -119,45 +96,17 @@ namespace Spring.Globalization.Formatters
|
||||
|
||||
fmt = new CurrencyFormatter(CultureInfoUtils.SerbianLatinCultureName);
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7AndBeforeWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual(1234, fmt.Parse("1.234,00 din."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1.234,56 din."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1.234,00 din."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1.234,56 din."));
|
||||
}
|
||||
|
||||
else if (CultureInfoUtils.OperatingSystemIsAtLeastWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual(1234, fmt.Parse("1.234 RSD"));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1.234 RSD"));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Assert.AreEqual(1234, fmt.Parse("1.234,00 Din."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1.234,56 Din."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1.234,00 Din."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1.234,56 Din."));
|
||||
}
|
||||
Assert.AreEqual(1234, fmt.Parse("1.234 RSD"));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1.234 RSD"));
|
||||
|
||||
fmt = new CurrencyFormatter(CultureInfoUtils.SerbianCyrillicCultureName);
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual(1234, fmt.Parse("1.234,00 дин."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1.234,56 дин."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1.234,00 дин."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1.234,56 дин."));
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.AreEqual(1234, fmt.Parse("1.234,00 Дин."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1.234,56 Дин."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1.234,00 Дин."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1.234,56 Дин."));
|
||||
}
|
||||
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual(1234, fmt.Parse("1.234,00 дин."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1.234,56 дин."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1.234,00 дин."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1.234,56 дин."));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -176,40 +125,26 @@ namespace Spring.Globalization.Formatters
|
||||
fmt.PositivePattern = 1;
|
||||
fmt.CurrencySymbol = "din";
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAtLeastWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("1.234din", fmt.Format(1234));
|
||||
Assert.AreEqual("1.235din", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234 din", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.235 din", fmt.Format(-1234.56));
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.AreEqual("1.234,00din", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,56din", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,00 din", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,56 din", fmt.Format(-1234.56));
|
||||
}
|
||||
Assert.AreEqual("1.234din", fmt.Format(1234));
|
||||
Assert.AreEqual("1.235din", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234 din", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.235 din", fmt.Format(-1234.56));
|
||||
|
||||
fmt = new CurrencyFormatter(CultureInfoUtils.SerbianCyrillicCultureName);
|
||||
fmt.GroupSizes = new int[] { 1, 2 };
|
||||
fmt.GroupSeparator = "'";
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("1'23'4,00 дин.", fmt.Format(1234));
|
||||
Assert.AreEqual("1'23'4,56 дин.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1'23'4,00 дин.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1'23'4,56 дин.", fmt.Format(-1234.56));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Assert.AreEqual("1'23'4,00 Дин.", fmt.Format(1234));
|
||||
Assert.AreEqual("1'23'4,56 Дин.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1'23'4,00 Дин.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1'23'4,56 Дин.", fmt.Format(-1234.56));
|
||||
}
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual("1'23'4,00 дин.", fmt.Format(1234));
|
||||
Assert.AreEqual("1'23'4,56 дин.", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1'23'4,00 дин.", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1'23'4,56 дин.", fmt.Format(-1234.56));
|
||||
#else
|
||||
Assert.AreEqual("1'23'4 RSD", fmt.Format(1234));
|
||||
Assert.AreEqual("1'23'5 RSD", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1'23'4 RSD", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1'23'5 RSD", fmt.Format(-1234.56));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -236,22 +171,12 @@ namespace Spring.Globalization.Formatters
|
||||
fmt.GroupSizes = new int[] { 1, 2 };
|
||||
fmt.GroupSeparator = "'";
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual(1234, fmt.Parse("1'23'4,00 дин."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1'23'4,56 дин."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1'23'4,00 дин."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1'23'4,56 дин."));
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.AreEqual(1234, fmt.Parse("1'23'4,00 Дин."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1'23'4,56 Дин."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1'23'4,00 Дин."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1'23'4,56 Дин."));
|
||||
}
|
||||
|
||||
}
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual(1234, fmt.Parse("1'23'4,00 дин."));
|
||||
Assert.AreEqual(1234.56, fmt.Parse("1'23'4,56 дин."));
|
||||
Assert.AreEqual(-1234, fmt.Parse("-1'23'4,00 дин."));
|
||||
Assert.AreEqual(-1234.56, fmt.Parse("-1'23'4,56 дин."));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,12 +51,13 @@ namespace Spring.Globalization.Formatters
|
||||
DateTimeFormatter fmt = new DateTimeFormatter("d");
|
||||
Assert.Throws<ArgumentException>(() => fmt.Format("not a date"));
|
||||
}
|
||||
#if !MONO
|
||||
|
||||
[Test]
|
||||
[Platform("Win")]
|
||||
public void FormatUsingDefaults()
|
||||
{
|
||||
DateTimeFormatter fmt = new DateTimeFormatter("d", "en-US");
|
||||
|
||||
Assert.AreEqual("8/14/2004", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("8/24/1974", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
|
||||
@@ -66,44 +67,23 @@ namespace Spring.Globalization.Formatters
|
||||
|
||||
fmt = new DateTimeFormatter("D", CultureInfoUtils.SerbianLatinCultureName);
|
||||
|
||||
Console.WriteLine("Steve: " + Environment.Version);
|
||||
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7AndBeforeWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("14. avgust 2004.", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("24. avgust 1974.", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
}
|
||||
|
||||
else if (CultureInfoUtils.OperatingSystemIsAtLeastWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("subota, 14. avgust 2004.", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("subota, 24. avgust 1974.", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Assert.AreEqual("14. avgust 2004", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("24. avgust 1974", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
}
|
||||
Assert.AreEqual("subota, 14. avgust 2004.", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("subota, 24. avgust 1974.", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
|
||||
fmt = new DateTimeFormatter("dd-MMM-yyyy", CultureInfoUtils.SerbianCyrillicCultureName);
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual("14-авг.-2004", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("24-авг.-1974", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.AreEqual("14-авг-2004", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("24-авг-1974", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
}
|
||||
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual("14-авг.-2004", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("24-авг.-1974", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
#else
|
||||
Assert.AreEqual("14-авг-2004", fmt.Format(new DateTime(2004, 8, 14)));
|
||||
Assert.AreEqual("24-авг-1974", fmt.Format(new DateTime(1974, 8, 24)));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Platform("Win")]
|
||||
[Ignore("Problematic due to framework differences")]
|
||||
public void ParseUsingDefaults()
|
||||
{
|
||||
DateTimeFormatter fmt = new DateTimeFormatter("d", "en-US");
|
||||
@@ -116,38 +96,14 @@ namespace Spring.Globalization.Formatters
|
||||
|
||||
fmt = new DateTimeFormatter("D", CultureInfoUtils.SerbianLatinCultureName);
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7AndBeforeWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual(new DateTime(2004, 8, 14), fmt.Parse("14. avgust 2004."));
|
||||
Assert.AreEqual(new DateTime(1974, 8, 24), fmt.Parse("24. avgust 1974."));
|
||||
}
|
||||
|
||||
else if (CultureInfoUtils.OperatingSystemIsAtLeastWindows10Build10586 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual(new DateTime(2004, 8, 14), fmt.Parse("subota, 14. avgust 2004."));
|
||||
Assert.AreEqual(new DateTime(1974, 8, 24), fmt.Parse("subota, 24. avgust 1974."));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
Assert.AreEqual(new DateTime(2004, 8, 14), fmt.Parse("14. avgust 2004"));
|
||||
Assert.AreEqual(new DateTime(1974, 8, 24), fmt.Parse("24. avgust 1974"));
|
||||
}
|
||||
Assert.AreEqual(new DateTime(2004, 8, 14), fmt.Parse("subota, 14. avgust 2004."));
|
||||
Assert.AreEqual(new DateTime(1974, 8, 24), fmt.Parse("subota, 24. avgust 1974."));
|
||||
|
||||
fmt = new DateTimeFormatter("dd-MMM-yyyy", CultureInfoUtils.SerbianCyrillicCultureName);
|
||||
|
||||
if (CultureInfoUtils.OperatingSystemIsAfterWindows7 && CultureInfoUtils.ClrIsVersion4OrLater)
|
||||
{
|
||||
Assert.AreEqual(new DateTime(2004, 8, 14), fmt.Parse("14-авг.-2004"));
|
||||
Assert.AreEqual(new DateTime(1974, 8, 24), fmt.Parse("24-авг.-1974"));
|
||||
}
|
||||
else
|
||||
{
|
||||
Assert.AreEqual(new DateTime(2004, 8, 14), fmt.Parse("14-авг-2004"));
|
||||
Assert.AreEqual(new DateTime(1974, 8, 24), fmt.Parse("24-авг-1974"));
|
||||
}
|
||||
Assert.AreEqual(new DateTime(2004, 8, 14), fmt.Parse("14-авг-2004"));
|
||||
Assert.AreEqual(new DateTime(1974, 8, 24), fmt.Parse("24-авг-1974"));
|
||||
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ namespace Spring.Globalization.Formatters
|
||||
/// Unit tests for FloatFormatter class.
|
||||
/// </summary>
|
||||
/// <author>Aleksandar Seovic</author>
|
||||
[TestFixture]
|
||||
public class FloatFormatterTests
|
||||
{
|
||||
[Test]
|
||||
@@ -62,8 +61,13 @@ namespace Spring.Globalization.Formatters
|
||||
Assert.AreEqual("-1234.00", fmt.Format(-1234));
|
||||
|
||||
fmt = new FloatFormatter(FloatFormatter.DefaultFormat, "sr-SP-Latn");
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual("1234,00", fmt.Format(1234));
|
||||
Assert.AreEqual("-1234,00", fmt.Format(-1234));
|
||||
#else
|
||||
Assert.AreEqual("1234,000", fmt.Format(1234));
|
||||
Assert.AreEqual("-1234,000", fmt.Format(-1234));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -63,10 +63,17 @@ namespace Spring.Globalization.Formatters
|
||||
Assert.AreEqual("-1,234.56", fmt.Format(-1234.56));
|
||||
|
||||
fmt = new NumberFormatter("sr-SP-Latn");
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual("1.234,00", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,56", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,00", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,56", fmt.Format(-1234.56));
|
||||
#else
|
||||
Assert.AreEqual("1.234,000", fmt.Format(1234));
|
||||
Assert.AreEqual("1.234,560", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1.234,000", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1.234,560", fmt.Format(-1234.56));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -101,10 +108,18 @@ namespace Spring.Globalization.Formatters
|
||||
fmt = new NumberFormatter("sr-SP-Cyrl");
|
||||
fmt.GroupSizes = new int[] {1, 2};
|
||||
fmt.GroupSeparator = "'";
|
||||
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual("1'23'4,00", fmt.Format(1234));
|
||||
Assert.AreEqual("1'23'4,56", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1'23'4,00", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1'23'4,56", fmt.Format(-1234.56));
|
||||
#else
|
||||
Assert.AreEqual("1'23'4,000", fmt.Format(1234));
|
||||
Assert.AreEqual("1'23'4,560", fmt.Format(1234.56));
|
||||
Assert.AreEqual("-1'23'4,000", fmt.Format(-1234));
|
||||
Assert.AreEqual("-1'23'4,560", fmt.Format(-1234.56));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -61,8 +61,13 @@ namespace Spring.Globalization.Formatters
|
||||
Assert.AreEqual("25.34%", fmt.Format(0.2534).Replace(" ", ""));
|
||||
|
||||
fmt = new PercentFormatter("sr-SP-Latn");
|
||||
#if NETFRAMEWORK
|
||||
Assert.AreEqual("25,00%", fmt.Format(0.25));
|
||||
Assert.AreEqual("25,34%", fmt.Format(0.2534));
|
||||
#else
|
||||
Assert.AreEqual("25,000%", fmt.Format(0.25));
|
||||
Assert.AreEqual("25,340%", fmt.Format(0.2534));
|
||||
#endif
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright © 2002-2011 the original author or authors.
|
||||
* Copyright © 2002-2011 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -66,7 +66,11 @@ namespace Spring.Objects.Factory.Config
|
||||
}
|
||||
catch (ConfigurationErrorsException cfgex)
|
||||
{
|
||||
#if NETFRAMEWORK
|
||||
Assert.IsInstanceOf(typeof(NotSupportedException), cfgex.InnerException);
|
||||
#else
|
||||
Assert.IsInstanceOf(typeof(ArgumentException), cfgex.InnerException);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,13 +18,11 @@
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
using Microsoft.Win32;
|
||||
using NUnit.Framework;
|
||||
|
||||
#endregion
|
||||
#pragma warning disable CA1416 // is only supported on windows
|
||||
|
||||
namespace Spring.Objects.Factory.Config
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<NoWarn>$(NoWarn);SYSLIB0001;SYSLIB0003;SYSLIB0011</NoWarn>
|
||||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
||||
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
|
||||
@@ -34,7 +34,7 @@
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
|
||||
<Compile Remove="Context\Attributes\FailAssemblyObjectDefinitionScannerTests.cs" />
|
||||
<Compile Remove="Context\Support\ApplicationContextAwareProcessorTests.cs" />
|
||||
<Compile Remove="Expressions\ExpressionEvaluatorTests.cs" />
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Spring
|
||||
|
||||
@@ -45,6 +45,7 @@ namespace Spring
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable SYSLIB0014 // WebRequest is obsolete
|
||||
public class TestResourceWebRequest : WebRequest
|
||||
{
|
||||
private Uri requestUri;
|
||||
@@ -58,8 +59,8 @@ namespace Spring
|
||||
{
|
||||
return new TestResourceWebResponse(requestUri);
|
||||
}
|
||||
|
||||
}
|
||||
#pragma warning restore SYSLIB0014 // WebRequest is obsolete
|
||||
|
||||
public class TestResourceWebRequestFactory : IWebRequestCreate
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright © 2002-2011 the original author or authors.
|
||||
* Copyright <EFBFBD> 2002-2011 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,8 +18,6 @@
|
||||
|
||||
#endregion
|
||||
|
||||
#if !MONO
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
@@ -415,5 +413,3 @@ namespace Spring.Data
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\src\Spring\Spring.Aop\Spring.Aop.csproj" />
|
||||
@@ -22,7 +22,7 @@
|
||||
<Reference Include="System.Data.OracleClient" />
|
||||
<Reference Include="System.Transactions" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
|
||||
<Compile Remove="Data\SQLiteTests.cs" />
|
||||
<Compile Remove="Data\OracleAdoTemplateTests.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\src\Spring\Spring.Aop\Spring.Aop.csproj" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
<RootNamespace>Spring.Data.NHibernate5.NestedTxSuspension.Integration.Tests</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Spring.Data.Tests\Spring.Data.Tests.csproj" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<TargetFrameworks>net6.0;$(TargetFullFrameworkVersion)</TargetFrameworks>
|
||||
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
@@ -23,7 +23,7 @@
|
||||
<PackageReference Include="NUnit3TestAdapter" Version="$(NUnitTestAdapterVersion)" />
|
||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' ">
|
||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
|
||||
<Compile Remove="Data\Core\ServiceDomainTransactionManagerTests.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\src\Spring\Spring.Aop\Spring.Aop.csproj" />
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>$(TargetFullFrameworkVersion)</TargetFramework>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\src\Spring\Spring.Core\Spring.Core.csproj" />
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user