AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
New 9.0.4 setup in Visual Studio all references broken
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Trying to make a new test install. I need to make sure I'm doing this right, because it's not working for me. I make a folder I unzip the AC904 download zip file which includes the /Lib/ and /Website/ folders along with the solution file I open VS 2019 I open The AbleCommerce solution file within VS 2019 The solution file contains one project called AbleCommerce. The project loads correctly. I expand the AbleCommerce project, and then expand the References folder. Every single reference has the yellow triangle and is a broken reference. What am I doing wrong? I look in the AbleCommerce.csproj and I see all the references have a hint path that points to a \packages\ folder like this: Quote:<HintPath>..\packages\NHibernate.5.0.3\lib\net461\NHibernate.dll</HintPath> But the zip file didn't contain a \packages\ folder. So how is someone supposed to rebuild the project if the references are all broken? Will VS just automatically reload them on a rebuild?
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Once opened in VS you need to save the project that will create a solution (.sln) file and Packages folder on a specified path. I hope this helps!
|
1 user thanked shaharyar for this useful post.
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Holy cow that worked! I didn't have an option to save the solution, I had not made any changes to it.
So I just closed the solution, then re-opened the solution. Now there is a /packages/ folder and all the references are connected. And I am able to build the project without errors.
Why in the world does Visual Studio do that to us??
Thank you for that tip, huge help!
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
I just had that happen to me yesterday. Thought I was going nuts. Also got a languages error when I tried to compile, but it went away also.
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
New 9.0.4 setup in Visual Studio all references broken
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close