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

cannot build latest master #36840

Closed
CyrusNajmabadi opened this issue Jun 27, 2019 · 15 comments
Closed

cannot build latest master #36840

CyrusNajmabadi opened this issue Jun 27, 2019 · 15 comments

Comments

@CyrusNajmabadi
Copy link
Member

I get this error:

1>------ Build started: Project: Microsoft.CodeAnalysis, Configuration: Debug Any CPU ------
1>C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(257,7): error MSB4064: The "DesignTimeBuild" parameter is not supported by the "ResolvePackageAssets" task. Verify the parameter exists on the task, and it is a settable public instance property.
1>C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): error MSB4063: The "ResolvePackageAssets" task could not be initialized with its input parameters.
1>Done building project "Microsoft.CodeAnalysis.csproj" -- FAILED.
2>------ Build started: Project: Microsoft.CodeAnalysis.Workspaces, Configuration: Debug Any CPU ------
2>C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(257,7): error MSB4064: The "DesignTimeBuild" parameter is not supported by the "ResolvePackageAssets" task. Verify the parameter exists on the task, and it is a settable public instance property.
2>C:\Program Files\dotnet\sdk\3.0.100-preview6-012264\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): error MSB4063: The "ResolvePackageAssets" task could not be initialized with its input parameters.
2>Done building project "Microsoft.CodeAnalysis.Workspaces.csproj" -- FAILED.

I have cleaned and restored. I am on:

image

@CyrusNajmabadi
Copy link
Member Author

Tagging @dotnet/roslyn-infrastructure @jasonmalinowski

@JoeRobich
Copy link
Member

@CyrusNajmabadi I just pulled, cleaned, restored and built master OK. However the latest .NET Core SDK I have is 3.0.100-preview6-012105 which matches what is specified in the global.json. I am going to download the -012264 build of the SDK and give it a try to see if I can reproduce what you are seeing.

@dibarbet
Copy link
Member

I've hit this before as well
@heejaechang had a suggestion to kill all the MSBuild tasks
taskkill /IM MSBuild.exe /F which has worked for me a couple times. Not a full resolution but it may help.

@CyrusNajmabadi
Copy link
Member Author

@dibarbet Thanks, unfortunately that didn't help. I have no msbuild instances running.

@JoeRobich Where can i find that version of the .net sdk?

@JoeRobich
Copy link
Member

@CyrusNajmabadi I was able to build with the same version of the SDK that you have installed, using the same version of VS. Did you have other versions of VS open? If so were they preview or RTM versions?

@JoeRobich
Copy link
Member

@CyrusNajmabadi We link to it in the Building, Debugging, and Testing on Windows, but you can download it here - Windows x64 installer. Not sure if your issue is SDK related anymore.

@CyrusNajmabadi
Copy link
Member Author

Did you have other versions of VS open? If so were they preview or RTM versions?

I have no other versions of VS open. I even rebooted to try to get things into a good state.

@JoeRobich
Copy link
Member

I have cleaned

git clean -xdf or Build > Clean Solution?

@CyrusNajmabadi
Copy link
Member Author

the former. Thanks!

@dibarbet
Copy link
Member

I am now also running into the issue again, and my former fix is no longer working.

@JoeRobich
Copy link
Member

@CyrusNajmabadi All it took was leaving VS up overnight I suppose.
image

@CyrusNajmabadi
Copy link
Member Author

Any ideas on how to fix this. @jasonmalinowski @dotnet/roslyn-infrastructure ?

@CyrusNajmabadi
Copy link
Member Author

Note: i'm also still getting this:

Error occurred while restoring NuGet packages: The operation failed as details for project Microsoft.CodeAnalysis.PooledObjects.Package could not be loaded.

@CyrusNajmabadi
Copy link
Member Author

Something strange seems to be happening on build too. It seems to be trying to restore all packages every time i try to build. This takes a looong time. like 20s just to do that step.

@CyrusNajmabadi
Copy link
Member Author

So what can i do about this:

image

?

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

No branches or pull requests

4 participants