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

The SDK 'Microsoft.NET.Sdk' specified could not be found. #24

Closed
arivera12 opened this issue Mar 19, 2020 · 5 comments
Closed

The SDK 'Microsoft.NET.Sdk' specified could not be found. #24

arivera12 opened this issue Mar 19, 2020 · 5 comments
Labels
3rd-party by design Not a bug. Just a feature. question

Comments

@arivera12
Copy link

I am trying to add a project reference to a solution and this error message gets throw.

This is the code that throws the error.

sln.Result.Env.AddOrGet(new Project(XmlReader.Create(new StreamReader($@".\Solutions\{Namespace}\{Namespace}.Server\{Namespace}.Server.csproj"))));

I have net core sdk installed but couldn't figure out why this error occurs.

@3F
Copy link
Owner

3F commented Mar 19, 2020

@3F 3F added 3rd-party by design Not a bug. Just a feature. labels Mar 19, 2020
@arivera12
Copy link
Author

After trying to above solution its throws me an error when calling builder resolver telling me that the sdk have been already loaded. I added my own implementation for my needs. Thanks anyway.

@3F 3F added the question label Mar 20, 2020
@3F
Copy link
Owner

3F commented Mar 20, 2020

I added my own implementation for my needs.

I am a bit confused with your applied solution if we're talking about project files.
Because it sounds you are doing something wrong:

Either you don't need msbuild resolver at all, or manipulations with xml-nodes + compatible evaluator engine are just a separate conversation which is more likely related to the planned v3.0 and so on.

@arivera12
Copy link
Author

Don't worry I just needed to add some items to a static project file.

@3F
Copy link
Owner

3F commented Mar 22, 2020 via email

@3F 3F mentioned this issue May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd-party by design Not a bug. Just a feature. question
Projects
None yet
Development

No branches or pull requests

2 participants