Abp: Module projects build error

Created on 15 Mar 2019  路  4Comments  路  Source: abpframework/abp

I open one of the module projects, such as users, when I build the project ,there 're many errors, like
"Severity Code Description Project File Line Suppression State
Error NU1105 Unable to find project information for 'D:ProjectsGithubabpframeworksrcVolo.Abp.MultiTenancy.AbstractionsVolo.Abp.MultiTenancy.Abstractions.csproj'. Inside Visual Studio, this may be because the project is unloaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore. Volo.Abp.Users.Abstractions D:ProjectsGithubabpmodulesuserssrcVolo.Abp.Users.AbstractionsVolo.Abp.Users.Abstractions.csproj 1
"

I do as the introduction of the abp, I disabled "Automatically check for missing packages during build in Visual Studio" in the Visual Studio options. and restore Nuget before open the projects, but this still doesn't work . I would like to know do you have any advice for this issues?

Most helpful comment

Can you build successfully from the command line?
I just tested it is OK.
image

Thanks @akinix I've found the reason. I should first open the project in Visual Studio, then run the restore command. If I reverse them, then I'll encounter many errors.

All 4 comments

First run dotnet restore from the command line inside the modules\users folder.
Then build the solution in Visual Studio

First run dotnet restore from the command line inside the modules\users folder.
Then build the solution in Visual Studio

Yes, of course, I first run dotnet restore command, it's ok, but I opened the module project in Visual Studio 2018 (v15.9.9), then built, there were many errors. Should I add these referenced projects in the module project Solution?

Can you build successfully from the command line?
I just tested it is OK.
image

Can you build successfully from the command line?
I just tested it is OK.
image

Thanks @akinix I've found the reason. I should first open the project in Visual Studio, then run the restore command. If I reverse them, then I'll encounter many errors.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hikalkan picture hikalkan  路  3Comments

hikalkan picture hikalkan  路  3Comments

leonkosak picture leonkosak  路  3Comments

wocar picture wocar  路  3Comments

Trojaner picture Trojaner  路  3Comments