mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Unify projects in SDK-style and PackageReference (#54)
* Unify projects in SDK-style and PackageReference * Add a note on the known issue about dlls not being copied * Bump CI to a more recent stable version of Mono This adds support for .net472, the first version of .NET with full support for netstandard2.0
This commit is contained in:
committed by
Miguel de Icaza
parent
4e85b5117e
commit
00c5997daa
@@ -5,6 +5,6 @@ script:
|
|||||||
- msbuild /t:Restore $TRAVIS_BUILD_DIR/Terminal.sln
|
- msbuild /t:Restore $TRAVIS_BUILD_DIR/Terminal.sln
|
||||||
- cd $TRAVIS_BUILD_DIR/
|
- cd $TRAVIS_BUILD_DIR/
|
||||||
- msbuild /p:Configuration=Release Terminal.sln
|
- msbuild /p:Configuration=Release Terminal.sln
|
||||||
mono: "5.4.1"
|
mono: "5.20.0"
|
||||||
dotnet: "2.1.4"
|
dotnet: "2.1.4"
|
||||||
os: "osx"
|
os: "osx"
|
||||||
|
|||||||
@@ -1,56 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
|
||||||
<ProjectGuid>{1228D992-C801-49BB-839A-7BD28A3FFF0A}</ProjectGuid>
|
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>Designer</RootNamespace>
|
<RootNamespace>Terminal</RootNamespace>
|
||||||
<AssemblyName>Designer</AssemblyName>
|
<AssemblyName>Terminal</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
|
||||||
<TargetFrameworkProfile />
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<ExternalConsole>true</ExternalConsole>
|
<ExternalConsole>true</ExternalConsole>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<Platforms>AnyCPU;x86</Platforms>
|
||||||
</PropertyGroup>
|
<Platform>x86</Platform>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release</OutputPath>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<ExternalConsole>true</ExternalConsole>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<PackageReference Include="NStack.Core" Version="0.11.0" />
|
||||||
<Reference Include="NStack">
|
|
||||||
<HintPath>..\packages\NStack.Core.0.11.0\lib\netstandard1.5\NStack.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="NStack">
|
|
||||||
<HintPath>..\packages\NStack.Core.0.11.0\lib\netstandard1.5\NStack.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Program.cs" />
|
<ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj">
|
|
||||||
<Project>{00F366F8-DEE4-482C-B9FD-6DB0200B79E5}</Project>
|
|
||||||
<Name>Terminal.Gui</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
|
|
||||||
// Information about this assembly is defined by the following attributes.
|
|
||||||
// Change them to the values specific to your project.
|
|
||||||
|
|
||||||
[assembly: AssemblyTitle ("Designer")]
|
|
||||||
[assembly: AssemblyDescription ("")]
|
|
||||||
[assembly: AssemblyConfiguration ("")]
|
|
||||||
[assembly: AssemblyCompany ("")]
|
|
||||||
[assembly: AssemblyProduct ("")]
|
|
||||||
[assembly: AssemblyCopyright ("${AuthorCopyright}")]
|
|
||||||
[assembly: AssemblyTrademark ("")]
|
|
||||||
[assembly: AssemblyCulture ("")]
|
|
||||||
|
|
||||||
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
|
|
||||||
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
|
|
||||||
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion ("1.0.*")]
|
|
||||||
|
|
||||||
// The following attributes are used to specify the signing key for the assembly,
|
|
||||||
// if desired. See the Mono documentation for more information about signing.
|
|
||||||
|
|
||||||
//[assembly: AssemblyDelaySign(false)]
|
|
||||||
//[assembly: AssemblyKeyFile("")]
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="NStack.Core" version="0.11.0" targetFramework="net47" />
|
|
||||||
</packages>
|
|
||||||
@@ -1,55 +1,18 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
|
||||||
<ProjectGuid>{B0A602CD-E176-449D-8663-64238D54F857}</ProjectGuid>
|
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>Terminal</RootNamespace>
|
<RootNamespace>Terminal</RootNamespace>
|
||||||
<AssemblyName>Terminal</AssemblyName>
|
<AssemblyName>Terminal</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<ExternalConsole>true</ExternalConsole>
|
<ExternalConsole>true</ExternalConsole>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<Platforms>AnyCPU;x86</Platforms>
|
||||||
</PropertyGroup>
|
<Platform>x86</Platform>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
<DefaultItemExcludes>StandaloneExample\**\*.*;Terminal.Gui\**\*.*</DefaultItemExcludes>
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release</OutputPath>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<DocumentationFile>bin\Release\Terminal.xml</DocumentationFile>
|
|
||||||
<ExternalConsole>true</ExternalConsole>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<PackageReference Include="NStack.Core" Version="0.11.0" />
|
||||||
<Reference Include="NStack">
|
|
||||||
<HintPath>..\packages\NStack.Core.0.11.0\lib\netstandard1.5\NStack.dll</HintPath>
|
|
||||||
<Private>False</Private>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="NStack">
|
|
||||||
<HintPath>..\packages\NStack.Core.0.11.0\lib\netstandard1.5\NStack.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="demo.cs" />
|
<ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Terminal.Gui\Terminal.Gui.csproj">
|
|
||||||
<Project>{00F366F8-DEE4-482C-B9FD-6DB0200B79E5}</Project>
|
|
||||||
<Name>Terminal.Gui</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="packages.config" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="NStack.Core" version="0.11.0" targetFramework="net461" />
|
|
||||||
</packages>
|
|
||||||
12
README.md
12
README.md
@@ -213,3 +213,15 @@ package version has been updated on the
|
|||||||
Terminal.Gui/Terminal.Gui.csproj, and push.
|
Terminal.Gui/Terminal.Gui.csproj, and push.
|
||||||
|
|
||||||
Then once the package is built, VSTS will request an approval.
|
Then once the package is built, VSTS will request an approval.
|
||||||
|
|
||||||
|
|
||||||
|
# Known Issues
|
||||||
|
|
||||||
|
There is a [known issue](https://github.com/NuGet/Home/issues/4837) that causes the
|
||||||
|
referenced package assemblies to be missing from the output directory of your console
|
||||||
|
apps and therefore fail at run-time. In order to force the copying, you can add the
|
||||||
|
following property to your console project:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
|
```
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
|
||||||
<PackageId>Terminal.Gui</PackageId>
|
<PackageId>Terminal.Gui</PackageId>
|
||||||
<PackageVersion>0.24</PackageVersion>
|
<PackageVersion>0.25</PackageVersion>
|
||||||
<Authors>Miguel de Icaza</Authors>
|
<Authors>Miguel de Icaza</Authors>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageProjectUrl>https://github.com/migueldeicaza/gui.cs/</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/migueldeicaza/gui.cs/</PackageProjectUrl>
|
||||||
@@ -69,14 +69,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Dialogs\" />
|
<Folder Include="Dialogs\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="NStack">
|
|
||||||
<HintPath>..\..\..\Users\miguel\.nuget\packages\nstack.core\0.11.0\lib\netstandard1.5\NStack.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="NStack">
|
|
||||||
<HintPath>..\..\..\Users\miguel\.nuget\packages\nstack.core\0.11.0\lib\netstandard1.5\NStack.dll</HintPath>
|
|
||||||
</Reference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="Drivers\#ConsoleDriver.cs#" />
|
<None Remove="Drivers\#ConsoleDriver.cs#" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="NStack.Core" version="0.11.0" targetFramework="net461" />
|
|
||||||
<package id="System.ValueTuple" version="4.4.0" targetFramework="net461" />
|
|
||||||
</packages>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<packages>
|
|
||||||
<package id="NStack.Core" version="0.11.0" targetFramework="net461" />
|
|
||||||
</packages>
|
|
||||||
Reference in New Issue
Block a user