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

Fails with ClearPluginAssemblies.proj #4116

Closed
badmotorfinger opened this issue Oct 14, 2019 · 13 comments
Closed

Fails with ClearPluginAssemblies.proj #4116

badmotorfinger opened this issue Oct 14, 2019 · 13 comments

Comments

@badmotorfinger
Copy link

badmotorfinger commented Oct 14, 2019

nopCommerce version: 4.2

Steps to reproduce the problem:

  1. Download nopCommerce 4.2 source code
  2. Extract it to disk
  3. Go into src directory
  4. dotnet build
  5. Run dotnet build again
  6. dotnet run --project .\Presentation\Nop.Web\

Fails with ClearPluginAssemblies.proj(21,5): error MSB3073: The command "dotnet "ClearPluginAssemblies.dll" "OutputPath= ... and the message is very large.

@RomanovM RomanovM changed the title Freshly download of nopCommerce 4.2 does not run Fails with ClearPluginAssemblies.proj Oct 14, 2019
@kristoforerickson
Copy link

This happens for me as well when I install Visual Studio 2019 version 16.3.0 which includes .net core 3.0 or if I install .net core 3.0 sdk.

@nguyenhthai
Copy link

nguyenhthai commented Oct 14, 2019

I have encountered this problem. At the moment due to not supporting .Net Core 3.0 SDK, the solution is to specify the SDK version so that VS will select it instead of default to the highest SDK version so you can still use 3.0 sdk for other things. In order to do that, you need to create the global.json file and put the sdk version that is installed on your computer and lower than 3.0. You can also use the command dotnet new globaljson --sdk-version 2.2.402 where version is the one you want to choose for building the project.

Note: To clarify on the location which the global.json file needs to be under, you can manually create it and put it under src folder. However, if you want to use the command, just run it under the src folder as well and the command will create the proper global.json with the correct sdk version.

@kevlingo
Copy link

kevlingo commented Oct 14, 2019 via email

@ghost
Copy link

ghost commented Oct 15, 2019

I have encountered this problem. At the moment due to not supporting .Net Core 3.0 SDK, the solution is to specify the SDK version so that VS will select it instead of default to the highest SDK version so you can still use 3.0 sdk for other things. In order to do that, you need to create the global.json file and put the sdk version that is installed on your computer and lower than 3.0. You can also use the command dotnet new globaljson --sdk-version 2.2.402 where version is the one you want to choose for building the project.

Note: To clarify on the location which the global.json file needs to be under, you can manually create it and put it under src folder. However, if you want to use the command, just run it under the src folder as well and the command will create the proper global.json with the correct sdk version.

What's the eqivalent of the src folder in nopCommerce 4.00?

@nguyenhthai
Copy link

What's the eqivalent of the src folder in nopCommerce 4.00?

There should be only one src folder in the project. Basically you can place the global.json or run the command under the same folder that contains the solution (.sln) file.

@tommyangelo
Copy link

We get the same error in our nightly builds on devOps since 11.11.2019. Our custom plugins fail except for a few. The default nop instance with default nop plugins builds without the error.

@tommyangelo
Copy link

@vincpa have you found a solution, since you closed the issue?

@badmotorfinger
Copy link
Author

@tommyangelo - You should read the comments.

Yes, the solution is dotnet new globaljson --sdk-version 2.2.402

@beefydog
Copy link

A solution that fixes that problem, however, newer build problems arise. I think the best solution is to completely remove VS2019 and replace with VS2017. That last VS update and NOTHING builds correctly - and/or it builds fine sometimes (about every 5th or 6th build with zero changes to code)! VS2019 is a joke.

@badmotorfinger
Copy link
Author

Downgrading is not a good long term solution.

@tbebekis-ax
Copy link

Thanks to @nguyenhthai for the global.json solution. It saved my day.

The NopCommerce Dev Team should include a global.json in the source tree. We all have many dotnet Core versions installed and the global.json seems to be th solution in those situations.

@skoshelev
Copy link
Contributor

Hi @tbebekis-ax. I am very sorry, but we can’t attach the global.json file to the project since it will have to specify a very low version of .Net Core SDK(2.2.110) for compatibility with VS 2017

@Joebeazelman
Copy link

Joebeazelman commented Sep 6, 2020

I am having this problem compiling the solution using dotnet build on MacOS. #5012

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

10 participants