Browse Source

Disabled MinVer when building in Debug (#1378)

Thomas Nind 4 years ago
parent
commit
2454dc9679
2 changed files with 5 additions and 1 deletions
  1. 2 0
      README.md
  2. 3 1
      Terminal.Gui/Terminal.Gui.csproj

+ 2 - 0
README.md

@@ -206,6 +206,8 @@ dotnet add package Terminal.Gui
 * Windows, Mac, and Linux - Build and run using the .NET SDK command line tools (`dotnet build` in the root directory). Run `UICatalog` with `dotnet run --project ./UICatalog` or by directly executing `./UICatalog/bin/Debug/net5.0/UICatalog.exe`.
 * Windows - Open `Terminal.Gui.sln` with Visual Studio 2019.
 
+Building in Release requires the [git command line tool](https://git-scm.com/) (a dependency of the [MinVer](https://github.com/adamralph/minver#can-i-disable-minver) build tool)
+
 ## Contributing
 
 See [CONTRIBUTING.md](https://github.com/migueldeicaza/gui.cs/blob/master/CONTRIBUTING.md).

+ 3 - 1
Terminal.Gui/Terminal.Gui.csproj

@@ -16,7 +16,9 @@
     </PackageReference>
     <!-- <None Remove="ConsoleDrivers\#ConsoleDriver.cs#" /> -->
   </ItemGroup>
-
+  <PropertyGroup>
+      <MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
+  </PropertyGroup>
   <PropertyGroup>
     <!-- See Terminal.Gui/README.md for how version numbering works -->
     <!-- This enables prefixing version tags with v, e.g. v1.0.0 Instead of 1.0.0 -->