Browse Source

fixed things for dotnet 46

pull/796/head
Xelwon 8 years ago
parent
commit
c5ad75a6d5
  1. 4
      clean.bat
  2. 2
      debugbuild.bat
  3. 2
      releasebuild.bat
  4. 2
      src/Main/Base/Project/Project/PortableLibrary/PortableTargetFramework.cs
  5. 1
      src/Main/Base/Project/Project/PortableLibrary/ProfileList.cs
  6. 3
      src/Main/Base/Project/Project/TargetFrameworks/TargetFramework.cs
  7. 1
      src/Main/Base/Project/Util/Versions.cs
  8. 3
      src/Main/SharpDevelop/Parser/AssemblyParserService.cs

4
clean.bat

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
@if not exist "src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit.sln" (
git submodule update --init || exit /b 1
)
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Debug
"%PROGFILES%\MSBuild\14.0\Bin\msbuild" /m SharpDevelop.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Debug
@IF %ERRORLEVEL% NEQ 0 PAUSE
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Release
"%PROGFILES%\MSBuild\14.0\Bin\msbuild" /m SharpDevelop.sln /t:clean "/p:Platform=Any CPU" /p:Configuration=Release
@IF %ERRORLEVEL% NEQ 0 PAUSE

2
debugbuild.bat

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
@if not exist "src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit.sln" (
git submodule update --init || exit /b 1
)
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /p:Configuration=Debug "/p:Platform=Any CPU" %*
"%PROGFILES%\MSBuild\14.0\Bin\msbuild" /m SharpDevelop.sln /p:Configuration=Debug "/p:Platform=Any CPU" %*
@IF %ERRORLEVEL% NEQ 0 GOTO err
@exit /B 0
:err

2
releasebuild.bat

@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
@if not exist "src\Libraries\AvalonEdit\ICSharpCode.AvalonEdit.sln" (
git submodule update --init || exit /b 1
)
"%PROGFILES%\MSBuild\12.0\Bin\msbuild" /m SharpDevelop.sln /p:Configuration=Release "/p:Platform=Any CPU" %*
"%PROGFILES%\MSBuild\14.0\Bin\msbuild" /m SharpDevelop.sln /p:Configuration=Release "/p:Platform=Any CPU" %*
@IF %ERRORLEVEL% NEQ 0 GOTO err
@exit /B 0
:err

2
src/Main/Base/Project/Project/PortableLibrary/PortableTargetFramework.cs

@ -74,6 +74,8 @@ namespace ICSharpCode.SharpDevelop.Project.PortableLibrary @@ -74,6 +74,8 @@ namespace ICSharpCode.SharpDevelop.Project.PortableLibrary
switch (targetFrameworkVersion) {
case "v4.0":
return Versions.V4_0;
case "v4.6":
return Versions.V4_6;
case "v4.5":
default:
return Versions.V4_5;

1
src/Main/Base/Project/Project/PortableLibrary/ProfileList.cs

@ -52,6 +52,7 @@ namespace ICSharpCode.SharpDevelop.Project.PortableLibrary @@ -52,6 +52,7 @@ namespace ICSharpCode.SharpDevelop.Project.PortableLibrary
string path = GetPortableLibraryPath();
result.LoadProfiles("v4.0", Path.Combine(path, @"v4.0\Profile"));
result.LoadProfiles("v4.5", Path.Combine(path, @"v4.5\Profile"));
result.LoadProfiles("v4.6", Path.Combine(path, @"v4.6\Profile"));
return result;
}

3
src/Main/Base/Project/Project/TargetFrameworks/TargetFramework.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
@ -35,6 +35,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -35,6 +35,7 @@ namespace ICSharpCode.SharpDevelop.Project
public static readonly TargetFramework Net35Client = new DotNet35Client();
public static readonly TargetFramework Net40 = new DotNet4x(Versions.V4_0, RedistLists.Net40, DotnetDetection.IsDotnet40Installed);
public static readonly TargetFramework Net40Client = new DotNet4xClient(Versions.V4_0, RedistLists.Net40Client, DotnetDetection.IsDotnet40Installed);
public static readonly TargetFramework Net46 = new DotNet4x(Versions.V4_6, RedistLists.Net45, DotnetDetection.IsDotnet45Installed);
public static readonly TargetFramework Net45 = new DotNet4x(Versions.V4_5, RedistLists.Net45, DotnetDetection.IsDotnet45Installed);
public static readonly TargetFramework Net451 = new DotNet4x(Versions.V4_5_1, RedistLists.Net45, DotnetDetection.IsDotnet451Installed);
public static readonly TargetFramework Net452 = new DotNet4x(Versions.V4_5_2, RedistLists.Net45, DotnetDetection.IsDotnet452Installed);

1
src/Main/Base/Project/Util/Versions.cs

@ -29,6 +29,7 @@ namespace ICSharpCode.SharpDevelop @@ -29,6 +29,7 @@ namespace ICSharpCode.SharpDevelop
public static readonly Version V3_0 = new Version(3, 0);
public static readonly Version V3_5 = new Version(3, 5);
public static readonly Version V4_0 = new Version(4, 0);
public static readonly Version V4_6 = new Version(4, 6);
public static readonly Version V4_5 = new Version(4, 5);
public static readonly Version V4_5_1 = new Version(4, 5, 1);
public static readonly Version V4_5_2 = new Version(4, 5, 2);

3
src/Main/SharpDevelop/Parser/AssemblyParserService.cs

@ -235,7 +235,8 @@ namespace ICSharpCode.SharpDevelop.Parser @@ -235,7 +235,8 @@ namespace ICSharpCode.SharpDevelop.Parser
break;
case TargetRuntime.Net_4_0:
default:
xmlFileName = LookupLocalizedXmlDoc(Path.Combine(referenceAssembliesPath, @".NETFramework\v4.5.2", name))
xmlFileName = LookupLocalizedXmlDoc(Path.Combine(referenceAssembliesPath, @".NETFramework\v4.6", name))
?? LookupLocalizedXmlDoc(Path.Combine(referenceAssembliesPath, @".NETFramework\v4.5.2", name))
?? LookupLocalizedXmlDoc(Path.Combine(referenceAssembliesPath, @".NETFramework\v4.5.1", name))
?? LookupLocalizedXmlDoc(Path.Combine(referenceAssembliesPath, @".NETFramework\v4.5", name))
?? LookupLocalizedXmlDoc(Path.Combine(referenceAssembliesPath, @".NETFramework\v4.0", name))

Loading…
Cancel
Save