Issues with rebuilding custom plugin - Error: NU1104

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi,

I was wondering if anyone could give me guiding steps on how to work with nopCommerce (source code) in Visual Studio?

I'm having issues with a plugin I had developed for me, I'm trying to build it to the solution but I'm always getting errors...

So here are the steps I take that seem to be failing (if you can give me the right steps then that would be very much appreciated)

1. Download nopCommerce 4.10 (source code) and extract it (I put it in a project folder for VS).
2. Open Visual Studio 2019 (Community Edition) - Click "Open project or solution".
3. Choose "nop.web.csproj"
4. Right click on soluton in Visual Studio and click "Build" (all of this works fine with no issues).
5. Right click on "Plugins" directory and choose "Add -> Existing project".
6. Here I choose my "CustomDevelopedPlugin.csproj"

7. Now I'm going to right click on the plugin and choose "Rebuild" to try and get a compiled version of the plugin...

But I always get the same issue... And it always tries to put "presentation version" of the plugin outside the folder...I've checked that all NuGet packages are updated

NU1104: Unable to find project C:\Users\UserName\Downloads\Presentation\Nop.Web.Framework\Nop.Web.Framework.csproj'. Check that the project reference is valid and that the project file exists.

If anyone can give me a step to step guide on what to do then it would be very much appreciated!
4 years ago
OTH wrote:
Hi,

I was wondering if anyone could give me guiding steps on how to work with nopCommerce (source code) in Visual Studio?

I'm having issues with a plugin I had developed for me, I'm trying to build it to the solution but I'm always getting errors...

So here are the steps I take that seem to be failing (if you can give me the right steps then that would be very much appreciated)

1. Download nopCommerce 4.10 (source code) and extract it (I put it in a project folder for VS).
2. Open Visual Studio 2019 (Community Edition) - Click "Open project or solution".
3. Choose "nop.web.csproj"
4. Right click on soluton in Visual Studio and click "Build" (all of this works fine with no issues).
5. Right click on "Plugins" directory and choose "Add -> Existing project".
6. Here I choose my "CustomDevelopedPlugin.csproj"

7. Now I'm going to right click on the plugin and choose "Rebuild" to try and get a compiled version of the plugin...

But I always get the same issue... And it always tries to put "presentation version" of the plugin outside the folder...I've checked that all NuGet packages are updated

NU1104: Unable to find project C:\Users\UserName\Downloads\Presentation\Nop.Web.Framework\Nop.Web.Framework.csproj'. Check that the project reference is valid and that the project file exists.

If anyone can give me a step to step guide on what to do then it would be very much appreciated!


Hi, probably the issue is that you are opening the project where you should be opening the solution.
If you open the solution you will have more things.

Solution Folders: Libraries; Presentation; Plugins (Where your plugin should be);Test

Hope this helps.
Take care
4 years ago
gondias wrote:
Hi, probably the issue is that you are opening the project where you should be opening the solution.
If you open the solution you will have more things.

Solution Folders: Libraries; Presentation; Plugins (Where your plugin should be);Test

Hope this helps.
Take care


I forgot to mention it but I've also tried that and got the same resaults.. :/
4 years ago
In the nopCommerce4.1 source folder you should see

\Build
\Libraries
\Plugins - Put your Plugin Directory in here with the other plugins
\Presentation
\Tests
Deploying.Readme.txt
LICENSE.md
NopCommerce.sln - This is the solution file to open

The solution file to open is NopCommerce.sln

Before you add the plugin project in 5 (above) move the plugin source to the plugins directory above
4 years ago
Yidna wrote:
In the nopCommerce4.1 source folder you should see

\Build
\Libraries
\Plugins - Put your Plugin Directory in here with the other plugins
\Presentation
\Tests
Deploying.Readme.txt
LICENSE.md
NopCommerce.sln - This is the solution file to open

The solution file to open is NopCommerce.sln

Before you add the plugin project in 5 (above) move the plugin source to the plugins directory above


Hi,

Thank you for the quick repsonse! I've added the Plugin Directory with the other plugins. But can you tell me how to move the plugin source to the plugin directory? Or is that basically what I just did with moving the plugin inside with the other plugins?
4 years ago
Yes the source should be in there and viewable in VS

Then if the project build file (The file that is displayed when you click on the project folder) has been written correctly it should build the plugin and copy it to the output directory automatically

Then when you publish the Nop.Web (right mouse click Publish) it will end up in the final directory which can be copied to production
4 years ago
Check your plugin project's Properties > Build tab, Output Path: Make sure you are using a relative path " ..\.. "

..\..\Presentation\Nop.Web\Plugins\Plugin.Name\
4 years ago
Yidna wrote:
Yes the source should be in there and viewable in VS

Then if the project build file (The file that is displayed when you click on the project folder) has been written correctly it should build the plugin and copy it to the output directory automatically

Then when you publish the Nop.Web (right mouse click Publish) it will end up in the final directory which can be copied to production


There was a problem with the project build file in the end. So your advice worked perfectly when I got an updated project. Thank you very much!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.