mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 22:34:27 -07:00
This commit adds the possibility to remove the dotnet core 3.0 support, working on Greenshot with Visual Studio 2017. To disable call .\build.ps1 --settings_skippackageversioncheck=true -Target DisableDNC30 and modify the global.json. See README.md
This commit is contained in:
parent
cb8af36cda
commit
b7690f334d
4 changed files with 26 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -212,3 +212,7 @@ ModelManifest.xml
|
|||
|
||||
#JetBrains Rider
|
||||
*.idea
|
||||
|
||||
# Cake tools
|
||||
tools/*
|
||||
!tools/packages.config
|
||||
|
|
|
@ -34,6 +34,11 @@ Quick started for developers
|
|||
* Open the solution from the src directory in Visual Studio
|
||||
* Rebuild and start... (you might need to rebuild 2x, looking into this)
|
||||
|
||||
If you can't use Visual Studio 2019 (preview) try the following:
|
||||
* Open a powershell in the directory where you cloned this repo
|
||||
* Disable dotnet core 3.0 with the following: .\build.ps1 --settings_skippackageversioncheck=true -Target DisableDNC30
|
||||
* To practically (some encoding issue maintains) undo the previous: .\build.ps1 --settings_skippackageversioncheck=true -Target EnableDNC30
|
||||
* Change src/global.json to contain the dotnet SDK version you have installed (e.g. 2.1.400)
|
||||
|
||||
For users the major changes since 1.2.x are:
|
||||
* dotnet core 3.0 support (why, read here: https://blogs.msdn.microsoft.com/dotnet/2018/10/04/update-on-net-core-3-0-and-net-framework-4-8/ )
|
||||
|
|
15
build.cake
15
build.cake
|
@ -2,13 +2,11 @@
|
|||
#tool "OpenCover"
|
||||
#tool "GitVersion.CommandLine"
|
||||
#tool "docfx.console"
|
||||
#tool "coveralls.net"
|
||||
#tool "PdbGit"
|
||||
// Needed for Cake.Compression, as described here: https://github.com/akordowski/Cake.Compression/issues/3
|
||||
#addin "SharpZipLib"
|
||||
#addin "Cake.FileHelpers"
|
||||
#addin "Cake.DocFx"
|
||||
#addin "Cake.Coveralls"
|
||||
#addin "Cake.Compression"
|
||||
|
||||
var target = Argument("target", "Build");
|
||||
|
@ -175,6 +173,19 @@ Task("AssemblyVersion")
|
|||
}
|
||||
});
|
||||
|
||||
Task("EnableDNC30")
|
||||
.Does(() =>
|
||||
{
|
||||
ReplaceRegexInFiles("./**/*.csproj", "<TargetFrameworks>.*</TargetFrameworks><!-- net471;netcoreapp3.0 -->", "<TargetFrameworks>net471;netcoreapp3.0</TargetFrameworks>");
|
||||
ReplaceRegexInFiles("./**/*.csproj", "<Project Sdk=\"MSBuild.Sdk.Extras/1.6.65\"><!-- Microsoft.NET.Sdk.WindowsDesktop -->", "<Project Sdk=\"Microsoft.NET.Sdk.WindowsDesktop\">");
|
||||
});
|
||||
|
||||
Task("DisableDNC30")
|
||||
.Does(() =>
|
||||
{
|
||||
ReplaceRegexInFiles("./**/*.csproj", "<TargetFrameworks>net471;netcoreapp3.0</TargetFrameworks>", "<TargetFrameworks>net471</TargetFrameworks><!-- net471;netcoreapp3.0 -->");
|
||||
ReplaceRegexInFiles("./**/*.csproj", "<Project Sdk=\"Microsoft.NET.Sdk.WindowsDesktop\">", "<Project Sdk=\"MSBuild.Sdk.Extras/1.6.65\"><!-- Microsoft.NET.Sdk.WindowsDesktop -->");
|
||||
});
|
||||
|
||||
// Clean all unneeded files, so we build on a clean file system
|
||||
Task("Clean")
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
<UseWPF>true</UseWPF>
|
||||
<UseWindowsForms>false</UseWindowsForms>
|
||||
<OsProductName>$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion@ProductName)</OsProductName>
|
||||
<RuntimeIdentifiers>win10-x64;win10-x86;win-x64;win-x86</RuntimeIdentifiers>
|
||||
<!--RuntimeIdentifiers>win10-x64;win10-x86;win-x64;win-x86</RuntimeIdentifiers-->
|
||||
<ExtrasEnableWpfProjectSetup>true</ExtrasEnableWpfProjectSetup>
|
||||
<ExtrasEnableWinFormsProjectSetup>false</ExtrasEnableWinFormsProjectSetup>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)' != 'Debug' And !$(MSBuildProjectName.Contains('Test')) And !$(MSBuildProjectName.Contains('Demo'))">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue