-
-
Notifications
You must be signed in to change notification settings - Fork 95
get builds running on linux #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: on-push-run-build | ||
on: [push, pull_request] | ||
|
||
env: | ||
# Opt out of telemetry | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_NOLOGO: 1 | ||
|
||
jobs: | ||
build_linux: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Build with dotnet | ||
run: dotnet build --configuration Debug | ||
|
||
- name: Run unit tests | ||
run: dotnet test --no-build -c Debug | ||
|
||
build_windows: | ||
|
||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Build with dotnet | ||
run: dotnet build --configuration Debug | ||
|
||
- name: Run unit tests | ||
run: dotnet test --no-build -c Debug |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
*.sln.docstates | ||
*.pidb | ||
*.userprefs | ||
*.idea | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
<Authors>Simon Cropp, Matt Ellis, Alexey Suvorov, Andy Hoyle, Tony (@megafinz), and contributors</Authors> | ||
<Description>Fody add-in to decorate arbitrary methods to run code before and after invocation.</Description> | ||
<PackageTags>ILWeaving Fody AOP</PackageTags> | ||
<NoWarn>CS1591;NU5228</NoWarn> | ||
<NoWarn>CS1591;NU5228;NU5118</NoWarn> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doesn't that hide an issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, so this warning is actually defined in What we want is it to ignore the warning and override the dll before packaging. At least that's my understanding. When I run the build in Rider or Command Line, it throws NU5118, if it's in Visual Studio on Windows it doesn't appear to throw as I believe it picks up the setting from |
||
<PackageOutputPath>$(SolutionDir)nugets</PackageOutputPath> | ||
<PackageIconUrl>https://raw.githubusercontent.com/Fody/MethodDecorator/master/package_icon.png</PackageIconUrl> | ||
<PackageProjectUrl>https://github.com/Fody/MethodDecorator</PackageProjectUrl> | ||
|
@@ -16,4 +16,8 @@ | |
<PackageReference Include="Fody" Version="6.5.1" PrivateAssets="none" /> | ||
<PackageReference Include="FodyPackaging" Version="6.5.1" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net452" Version="1.0.0" /> | ||
</ItemGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks> | ||
<TargetFrameworks>net452;netstandard2.0</TargetFrameworks> | ||
<DisableFody>true</DisableFody> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net452" Version="1.0.0" /> | ||
</ItemGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks> | ||
<TargetFrameworks>net452;netstandard2.0</TargetFrameworks> | ||
<DisableFody>true</DisableFody> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\MethodDecorator\MethodDecorator.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net452" Version="1.0.0" /> | ||
</ItemGroup> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks> | ||
<TargetFrameworks>net452;netstandard2.0</TargetFrameworks> | ||
<DisableFody>true</DisableFody> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\AnotherAssemblyAttributeContainer\AnotherAssemblyAttributeContainer.csproj"/> | ||
<ProjectReference Include="..\..\MethodDecorator\MethodDecorator.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net452" Version="1.0.0" /> | ||
</ItemGroup> | ||
</Project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding
DOTNET_NOLOGO: 1
to avoid the spam in the console.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know about this. I've included it. Thanks.