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

fix 2 projects could not be loaded #1965

Closed
wants to merge 1 commit into from
Closed

fix 2 projects could not be loaded #1965

wants to merge 1 commit into from

Conversation

infofromca
Copy link
Contributor

cannotload21

@infofromca
Copy link
Contributor Author

#1614 can be closed now

@sebastienros
Copy link
Member

Can you explain the changes and the relationship with the linked issue?

@jtkech
Copy link
Member

jtkech commented Jun 14, 2018

OrchardCore.Application.Nancy.Targets is a library package so normally it should be netstandard2.0.

Idem for DerivedThemeSample2 which is a testing module but it was already netcoreapp2.0 which is wrong, idem for other testing modules.

Normally we only use Microsoft.NET.Sdk.Razor for themes and modules, and only if they have at least one razor view.

I will check this.

@sebastienros
Copy link
Member

sebastienros commented Jun 14, 2018

Class libraries need to be Sdk.Razor, web apps need to be Sdk.Web, which inherits from Sdk.Web

@jtkech
Copy link
Member

jtkech commented Jun 14, 2018

This is what we do unless for modules which will never have any views. For these ones i opted to still use Microsoft.NET.Sdk to not include in this case the razor sdk msbuild scripts.

Update: And also for core libraries which have no razor views.

But there was a mistake for the testing modules that i'm currently fixing.

That said i could repro the message about DerivedThemeSample2 which has the exact same csproj file as DerivedThemeSample. Hmm not sure it's a real error because all tests build and run without errors.

I will check this.

@jtkech
Copy link
Member

jtkech commented Jun 14, 2018

I don't think it's a real error.

Through VS i just tried to unload the project, then reload it, then the package manager did a restore for this project without any error messages.

Then i re-did a git clean, then i got again the same messages but it was related to 2 other libraries. Doing it again i got only one message but now related to BaseThemeSample2.

Sound like a VS issue, i will investigate.

@jtkech
Copy link
Member

jtkech commented Jun 15, 2018

Didn't find anything else, it's erratic, the message is not always related to the same projects. That said seems to be always related to a referenced project by the OC.Tests project. So, i will still investigate.

Meanwhile, there are some issues around this where i found this comment.

Typically this error appears when the projects are still not loaded, in that case auto restore will try again when the project metadata is pushed, and everything will be restored correctly at that time.

@jtkech
Copy link
Member

jtkech commented Jun 15, 2018

Related links.

This one, and this one.

So, i think that right now for large solutions a first restore could fail on not yet nominated projects, then a delayed automatic restore is done ... as i understand in this part of code.

Honestly, i think there is nothing to do here, unless the little updates i mentionned above and that i did here #1973.

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

Successfully merging this pull request may close these issues.

None yet

3 participants