Skip to content
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

Cake running on Mono can't load netstandard 2.0 assembly #2063

Closed
bjorkstromm opened this issue Feb 27, 2018 · 6 comments
Closed

Cake running on Mono can't load netstandard 2.0 assembly #2063

bjorkstromm opened this issue Feb 27, 2018 · 6 comments
Assignees
Labels
Milestone

Comments

@bjorkstromm
Copy link
Member

bjorkstromm commented Feb 27, 2018

Currently getting You must add a reference to assembly 'netstandard, Version=2.0.0.0

Minimal repro:

#addin nuget:?package=Microsoft.AspNetCore.TestHost&version=2.0.0&loaddependencies=true
#addin nuget:?package=Microsoft.AspNetCore.Http.Extensions&version=2.0.0&loaddependencies=true

using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;

Information("Oh hi, Mark!");

new ConfigurationBuilder().Build();

Gives:

standard.cake(9,28): error CS0012: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
@bjorkstromm bjorkstromm changed the title Cake running on Mono can't load netstandard2.0 addin Cake running on Mono can't load netstandard2.0 assembly Feb 27, 2018
bjorkstromm added a commit to bjorkstromm/cake that referenced this issue Feb 28, 2018
- Adds integration test for loading netstandard2 addin.
bjorkstromm added a commit to bjorkstromm/cake that referenced this issue Feb 28, 2018
- Adds netstandard 2.0.0.0 to default assemblies in ScriptConventions
- Fixes cake-build#2063
bjorkstromm added a commit to bjorkstromm/cake that referenced this issue Mar 1, 2018
- Adds netstandard 2.0.0.0 to default assemblies in ScriptConventions
- Fixes cake-build#2063
gep13 pushed a commit to bjorkstromm/cake that referenced this issue Mar 1, 2018
- Adds integration test for loading netstandard2 addin.
gep13 pushed a commit to bjorkstromm/cake that referenced this issue Mar 1, 2018
- Adds netstandard 2.0.0.0 to default assemblies in ScriptConventions
- Fixes cake-build#2063
@bjorkstromm bjorkstromm added this to the v0.26.1 milestone Mar 1, 2018
@gep13 gep13 added the Bug label Mar 1, 2018
devlead added a commit that referenced this issue Mar 3, 2018
* mholo65-feature/GH-2063:
  (GH-2063) Adds netstandard to default assembly list
  (GH-2063) Adds netstandard2 integration tests.
@gep13 gep13 changed the title Cake running on Mono can't load netstandard2.0 assembly Cake running on Mono can't load netstandard 2.0 assembly Mar 3, 2018
@gep13 gep13 closed this as completed Mar 3, 2018
gep13 added a commit that referenced this issue Mar 3, 2018
* hotfix/0.26.1:
  (build) Updated version and release notes
  (GH-2063) Adds netstandard to default assembly list
  (GH-2063) Adds netstandard2 integration tests.
gep13 added a commit that referenced this issue Mar 3, 2018
* hotfix/0.26.1:
  (build) Updated version and release notes
  (GH-2063) Adds netstandard to default assembly list
  (GH-2063) Adds netstandard2 integration tests.
dazinator pushed a commit to dazinator/GitVersion that referenced this issue Apr 5, 2018
@dazinator
Copy link

I am hitting what I beleive is this same issue at the moment, after updating cake to 0.26.1 which I had hoped might fix it: https://travis-ci.org/GitTools/GitVersion/jobs/362700883#L1944

@devlead
Copy link
Member

devlead commented Apr 5, 2018

Which version of mono is used? .NET Standard support was introduced first as preview in like 5.2 and stable in 5.4.

@dazinator
Copy link

In the travis.yml file is:

mono: latest

Should I specify something else?

@dazinator
Copy link

Will try specifying 5.4.0.201

@dazinator
Copy link

Travis doesn't seem to recognise 5.4.0.201 as a valid version of mono.. Have moved thos to a stack overflow question: https://stackoverflow.com/questions/49677894/travis-ci-mono-5-4-0-201

@devlead
Copy link
Member

devlead commented Apr 5, 2018

@dazinator I've submitted a suggestion on your Stackoverflow question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants