mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2024-10-16 14:56:49 +03:00
No l;onger supporting net4.
This commit is contained in:
parent
0b6043bc48
commit
b62b15dba1
20
.github/workflows/release-preview.yml
vendored
Normal file
20
.github/workflows/release-preview.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9][0-9][0-9]"
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Set VERSION variable from tag
|
||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
||||
- name: Pack
|
||||
run: echo dotnet pack --configuration Release /p:Version=${VERSION} --output .
|
||||
- name: Push
|
||||
run: echo dotnet nuget push NuGet.Workflow.${VERSION}.nupkg --source https://nuget.pkg.github.com/acraven/index.json --api-key ${GITHUB_TOKEN}
|
||||
env:
|
||||
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.DUMMY_GITHUB_TOKEN }}
|
31
.github/workflows/release.yml
vendored
Normal file
31
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Verify commit exists in origin/master
|
||||
run: git branch --remote --contains | grep origin/master
|
||||
- name: Extract release notes
|
||||
run: |
|
||||
git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: v(\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE-NOTES
|
||||
- name: Set VERSION variable from tag
|
||||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
|
||||
- name: Build
|
||||
run: echo dotnet build --configuration Release /p:Version=${VERSION}
|
||||
- name: Test
|
||||
run: echo dotnet test --configuration Release /p:Version=${VERSION} --no-build
|
||||
- name: Pack
|
||||
run: echo dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
|
||||
- name: Push
|
||||
run: echo dotnet nuget push NuGet.Workflow.${VERSION}.nupkg --source https://nuget.pkg.github.com/acraven/index.json --api-key ${GITHUB_TOKEN}
|
||||
env:
|
||||
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.DUMMY_GITHUB_TOKEN }}
|
@ -12,7 +12,7 @@
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<PackageId>DarkUI.Net5</PackageId>
|
||||
<Authors>Robin Perris, Micheal Colhoun</Authors>
|
||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||
<PackageLicenseFile></PackageLicenseFile>
|
||||
<PackageProjectUrl>http://www.darkui.com/</PackageProjectUrl>
|
||||
<PackageIcon>icon-64.png</PackageIcon>
|
||||
<PackageIconUrl>http://www.darkui.com/images/icon-64.pn</PackageIconUrl>
|
||||
@ -21,16 +21,13 @@
|
||||
<PackageTags>docking winforms net-winforms docking-library docking-application c-sharp dotnet dotnet-framework visual-studio visual-studio-themes windows windows-desktop windows-forms net5</PackageTags>
|
||||
<PackageReleaseNotes>Update DarkUI target frameworks to net5.0-windows;net4</PackageReleaseNotes>
|
||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\icon-64.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
<None Include="..\LICENSE">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,13 +0,0 @@
|
||||
#FAQ
|
||||
|
||||
Q) I got an error:
|
||||
|
||||
Your project does not reference ".NETFramework,Version=v4.0,Profile=Client" framework. Add a reference to ".NETFramework,Version=v4.0,Profile=Client" in the "TargetFrameworks" property of your project file and then re-run NuGet restore.
|
||||
|
||||
A) If you want to run on net4.0, you must unload the .net5 Example project first. Right click the project and hit 'unload project', then following the steps below:
|
||||
|
||||
* Clean solution
|
||||
* Delete folder "Example\bin"
|
||||
* Delete folder "example\obj"
|
||||
|
||||
For more info see: https://stackoverflow.com/questions/52833741/your-project-does-not-reference-netframework-version-v4-6-2-framework-add-a
|
Loading…
Reference in New Issue
Block a user