-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Description
Describe the bug
The Middleware solution can't be opened due to the known issue NU1105, however running the AddAllProjectRefsToSolution.ps1 script doesn't work either.
To Reproduce
Steps to reproduce the behavior:
- Checkout master and clean your working copy
- Run .\restore.cmd. This pass
- Run ./eng/scripts/AddAllProjectRefsToSolution.ps1 -WorkingDir .\src\Middleware\
- The script attempt to build but it fails. See error below
Expected behavior
AddAllProjectRefsToSolution add all project references to the solution to circumvent the known issue, however it fails due to the same issue
Error
❯ ./eng/scripts/AddAllProjectRefsToSolution.ps1 -WorkingDir .\src\Middleware\
Using KoreBuild 3.0.0-build-20190205.1
.NET Core SDK 3.0.100-preview-009750 is already installed. Skipping installation.
Detected Visual Studio Enterprise 2017 (15.9.28307.423) in 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise'
>>> msbuild.exe C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\build\tasks\RepoTasks.csproj -v:m -restore -t:Publish -p:Configuration=Release -p:PublishDir=C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\build\tasks\bin\publish -nologo -p:RepoTasksSdkPath=C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\.dotnet\buildtools\korebuild\3.0.0-build-20190205.1\scripts\..\msbuild\KoreBuild.RepoTasks.Sdk\Sdk /p:ProjectsReferencedOutFile=C:\Users\alessiof\AppData\Local\Temp\tmp9DBC.tmp /p:Projects=C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\**\*.*proj /p:_RunRestore=True /p:_RunBuild=True /p:_RunPack=False /p:_RunTests=False /p:_RunSign=False /p:TargetArchitecture=x64 /p:TargetOsName=win @C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\artifacts\logs\msbuild.logger.rsp
Restore completed in 47.89 ms for C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\build\tasks\RepoTasks.csproj.
RepoTasks -> C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\build\tasks\bin\Release\net461\RepoTasks.dll
RepoTasks -> C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\build\tasks\bin\publish\
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.79
>>> msbuild.exe @C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\artifacts\logs\msbuild.rsp @C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\artifacts\logs\msbuild.logger.rsp
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices.Extensions\src\Microsoft.AspNetCore.SpaServices.Extensions.csproj : error NU1105: Unable to find p
roject information for 'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.ViewFeatures\src\Microsoft.AspNetCore.Mvc.ViewFeatures.csproj'. Inside Visual Studio, thi
s 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.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices.Extensions\src\Microsoft.AspNetCore.SpaServices.Extensions.csproj : error NU1105: Unable to find p
roject information for 'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.TagHelpers\src\Microsoft.AspNetCore.Mvc.TagHelpers.csproj'. Inside Visual Studio, this ma
y 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.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\samples\Webpack\Webpack.csproj : error NU1105: Unable to find project information for 'C:\Users\al
essiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc\src\Microsoft.AspNetCore.Mvc.csproj'. Inside Visual Studio, this may be because the project is unloaded or not part of curre
nt solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\samples\Webpack\Webpack.csproj : error NU1105: Unable to find project information for 'C:\Users\al
essiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.ViewFeatures\src\Microsoft.AspNetCore.Mvc.ViewFeatures.csproj'. Inside Visual Studio, this may be because the project is unl
oaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\samples\Webpack\Webpack.csproj : error NU1105: Unable to find project information for 'C:\Users\al
essiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.TagHelpers\src\Microsoft.AspNetCore.Mvc.TagHelpers.csproj'. Inside Visual Studio, this may be because the project is unloade
d or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\src\Microsoft.AspNetCore.SpaServices.csproj : error NU1105: Unable to find project information for
'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.ViewFeatures\src\Microsoft.AspNetCore.Mvc.ViewFeatures.csproj'. Inside Visual Studio, this may be because the p
roject is unloaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\src\Microsoft.AspNetCore.SpaServices.csproj : error NU1105: Unable to find project information for
'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.TagHelpers\src\Microsoft.AspNetCore.Mvc.TagHelpers.csproj'. Inside Visual Studio, this may be because the proje
ct is unloaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\WebSockets\test\ConformanceTests\Microsoft.AspNetCore.WebSockets.ConformanceTests.csproj : error NU1105: Unabl
e to find project information for 'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Servers\IIS\IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.
IIS.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 requi
red for restore.
Build FAILED.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices.Extensions\src\Microsoft.AspNetCore.SpaServices.Extensions.csproj : error NU1105: Unable to find p
roject information for 'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.ViewFeatures\src\Microsoft.AspNetCore.Mvc.ViewFeatures.csproj'. Inside Visual Studio, thi
s 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.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices.Extensions\src\Microsoft.AspNetCore.SpaServices.Extensions.csproj : error NU1105: Unable to find p
roject information for 'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.TagHelpers\src\Microsoft.AspNetCore.Mvc.TagHelpers.csproj'. Inside Visual Studio, this ma
y 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.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\samples\Webpack\Webpack.csproj : error NU1105: Unable to find project information for 'C:\Users\al
essiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc\src\Microsoft.AspNetCore.Mvc.csproj'. Inside Visual Studio, this may be because the project is unloaded or not part of curre
nt solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\samples\Webpack\Webpack.csproj : error NU1105: Unable to find project information for 'C:\Users\al
essiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.ViewFeatures\src\Microsoft.AspNetCore.Mvc.ViewFeatures.csproj'. Inside Visual Studio, this may be because the project is unl
oaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\samples\Webpack\Webpack.csproj : error NU1105: Unable to find project information for 'C:\Users\al
essiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.TagHelpers\src\Microsoft.AspNetCore.Mvc.TagHelpers.csproj'. Inside Visual Studio, this may be because the project is unloade
d or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\src\Microsoft.AspNetCore.SpaServices.csproj : error NU1105: Unable to find project information for
'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.ViewFeatures\src\Microsoft.AspNetCore.Mvc.ViewFeatures.csproj'. Inside Visual Studio, this may be because the p
roject is unloaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\SpaServices\src\Microsoft.AspNetCore.SpaServices.csproj : error NU1105: Unable to find project information for
'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Mvc\Mvc.TagHelpers\src\Microsoft.AspNetCore.Mvc.TagHelpers.csproj'. Inside Visual Studio, this may be because the proje
ct is unloaded or not part of current solution. Otherwise the project file may be invalid or missing targets required for restore.
C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Middleware\WebSockets\test\ConformanceTests\Microsoft.AspNetCore.WebSockets.ConformanceTests.csproj : error NU1105: Unabl
e to find project information for 'C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\src\Servers\IIS\IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.
IIS.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 requi
red for restore.
0 Warning(s)
8 Error(s)
Time Elapsed 00:00:07.18
msbuild.exe failed with exit code: 1
At C:\Users\alessiof\Workspace\public\aspnet\AspNetCore\.dotnet\buildtools\korebuild\3.0.0-build-20190205.1\scripts\common.psm1:11 char:9
+ throw "$cmdName failed with exit code: $exitCode"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (msbuild.exe failed with exit code: 1:String) [], RuntimeException
+ FullyQualifiedErrorId : msbuild.exe failed with exit code: 1Metadata
Metadata
Assignees
Labels
area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.