I'm trying to install the FluentNHibernate using Nuget but whenever I try it throws an exception 'Iesi.Collections' already has a dependency defined for 'NETStandard.Library and I don't know how could I fix it.
How could I fix this problem ?
I had the same issue and had it resolved by following these procedures:
1. Right-click the project in the Solution Explorer and select the option 'Manage NuGet Packages'.
2. At the LHS pane, click 'Online' from the list, then type any package name you want on the upper
right search field.
3. Select and Install. If there are dependencies, the system will add them automaically (the right versions of course).
4. Restart VS if necessary.
Note: the listed procedures require an internet connection.
Related
Basic .msi project.
Installshield 2010.
Im my installation project v1.0.0.0 i have added some components:
1. Went to "Installation designer" tab -> "Organization" menu category -> "Components" sub menu.
2. Right click "Components" -> "New component".
3. I append a new folder name "dir1" to the [INSTALLDIR] destination.
4. Then i add a file.
5. Went to "Organization" -> "Setup design"
6. Created a new feature
7. Right click the feature and select "Assign components"
8. I select the component
Build, Install.
Then i up the version of my installation to v1.0.0.1
1. Added new component again.
2. Appended destination with a different directory name [INSTALLDIR]dir2
3. Added a file.
4. Went to "Setup design"
5. Right click the feature and select "Assign components"
6. Selected the second component i created.
7. Then went to "Components" and deleted the first component.
Build, install.
At this point, nothing updated. I still see the Dir1 and there is no Dir2 in the application installation directory.
If i try to uninall, it will remove the application for the "Uninstall programs" list, but none of the files are removed at all.
What did i do wrong and how do i fix this?
google has zero help on this. I might not know what search words to use for this kind of problem.
If i completely uninstall my project and manually delete all the files, and then install the new version, then it is all ok and it creates dir2, but i need this to work not only with fresh install, but update too.
SOLUTION (for me at least)
While the M F solution is good for when you have not yet done damage to your installshield project, i will document my own steps on how i fixed this after the damage has been done and there is no backup saved.
In the 'Installation Designer' view:
1. Installation information -> General Information -> Product code, i click on Generate a new GUID button.
2. Media -> Upgrades -> Prepare setup for Upgrade Scenarios -> Upgrade Windows Installer Setup. Right click it and select Add major upgrade item.
3. Common -> Major upgrade. Leave the Products sharing my Upgrade Code checked.
4. Common -> Product Version. Select Within a specific range of versions and input current build version into 'max' box.
Now when application is being installed with this new install file, it will automatically uninstall the older version with all of its components and install the new version with new components.
You cannot remove components between minor installs.
You can set the component condition to '0' so that the condition does not install and delete any files that are in the component. But leave the component as part of the project.
If you want to remove the files installed as part of the original component then add the files to the component with remove files settings.
If you output a verbose log you will see in the log file that it complains that a component was removed. Or if you validate the new build against the old build it will says that you cannot remove a component.
I had my solution in Visual Studio 2012 (which is under TFS source control) open and the TFS server (2010) was down. When I then made a change to one of the files and attempted to save it I got a prompt to ask whether I wanted to Overwrite the file saying the TFS server was down (can't remember the exact words) and the following message appeared in the Output window:
This solution is offline. [Team Foundation Server: http://tfs1:8080/tfs/server]
The solution was offline during its previous session and will remain offline.
How do I get the file change to be recognised as being among Pending Changes and the whole solution back online?
I searched for the solution online and found this solution but wasn't too keen on the registry change.
I found a better way: right-click on the solution name right at the top of the Solution Explorer and select the Go Online option. Clicking this allowed me to select the files that had been changed when I was offline and make the solution online again.
After finding the solution, I found the following msdn forum thread which confirmed the above.
Go to File > Source Control > Go Online, select the files you changed, and finish the process.
Rename the solution's corresponding .SUO file. The SUO file contains the TFS status (online/offline), amongst a host of other goodies.
Do this only if the "right-click on the solution name right at the top of the Solution Explorer and select the Go Online option" fails (because e.g. you installed VS2015 preview).
(Additional step from solution above for if you are missing the AutoReconnect or Offline registry value)
For Visual Studio 2015, Version 14
Turn off all VS instances
HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0\TeamFoundation\Instances{YourServerName}\Collections{TheCollectionName} (To get to this directory on Windows, hit the Windows + R key and search for "regedit")
Set both the Offline and AutoReconnect values to 0.
If you are missing one of those attributes (in my case I was missing AutoReconnect), right click and and create a new DWORD(32-bit) value with the desired missing name, AutoReconnect or Offline.
Again, make sure both values are set to zero.
Restart your solution
Additional info:
blog MSDN - When and how does my solution go offline?
I am using Visual Studio 2017 15.4.0 version. Especially when i started use lightweight solution option, this offline thing happened to me. I tried to above solutions which are:
Tried to regedit option but can not see appropriate menu options. Didn't work.
Right click on solution, there is go online option and
when i choose it that gives this error message: "The solution is
offline because its associated Team Foundation Server is offline.
Unable to determine the workspace for this solution."
Then from File -> Source Control -> Advanced -> Change Source Control. I saw my files. I select them and then chose bind option. That worked for me.
You can go use registry editor.
Turn off all VS instances.
Open registry editor and go to:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\TeamFoundation\Instances
Find proper server e.g: team32system1
Go to Collection and nex DefaultCollection:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\TeamFoundation\Instances\team32system1\Collections\DefaultCollection
Set Offline key to 0
Open solution in VS. Afterwards pop up should appear which question would you like bring solution to online mode.
Neither of the above solutions worked for me on Visual Studio Community 2017 v15.7.1. Somehow, there was no "Go Online" option in the context menu. I tried registry edit as suggested here, but that only displayed me error that it could not find the binding. What worked for me is rebinding solution to the server from Change Source Control menu.
Go to File->Source Control->Advanced->Change Source Control and make sure that your solution is binded to your source control. If not (like mine) then click on bind button, it will automatically search online TFS server and rebind your solution to it.
i found another way without much effort.
Just simply right click your solution and then click undo pending changes.
Next, VS will ask you for acutally changed file where you want to undo or not specific file.
In this you can click no for such a file where actual change is happende, rest is just undoing. This will not lost your actual changes
You will need to do two steps here for a complete solution
First click on the Solution that you have open and then go File-> Source Control -> Go Online Then uncheck all the files that are being shown as being modified while you were offline.
Don't do the Get Latest version from Source Control Explorer. That will result in a dialog potentially showing a bunch of files asking you to resolve conflicts. Instead do this
In source Control explorer right click on the folder you want to get latest of and then Advanced - Get Specific Version. In the dropdown for version type choose Latest and then choose the first check box that says Overwrite writable files that are not checked out. This will automatically bring your folder in sync with latest on the server
One method I did with mine, is to "Add to Source Control", and select 'Git'.
I have a warning when i build a project in Visual Studio :
Cannot find wrapper assembly for type library "Microsoft.Office.Core"
How do I get rid of it ?
I followed the instruction from the link below and the problem is resolved. The problem is related to a Windows update, so after I remove the reference Microsoft.Office.Core and rebuild the project, the problem is resolved.
Warning: The referenced component 'Microsoft.Office.Core' could not be found
Missing this reference "Office = Microsoft.Office.Core"?
Here is how you can add the particular reference:
Step 1: Right-click your project
Step 2: Select "Add reference.."
Step 3: Click on the "COM" tab
Step 4: Scroll down to select "Microsoft Office 12.0 Object Library".
Source: https://web.archive.org/web/20160305201349/http://blogs.msdn.com/b/tolong/archive/2007/12/02/missing-office-microsoft-office-core-reference.aspx
Yes, I have solved the same problem. Go to Add Reference. In right side search box type the missing component name or name part. You will get the checked marked items. Then uncheck then item. Click Ok. Then do the same process again. Now you will get the item is not checked. Check now. Your problem must will be solved. Basically this problem comes if your project transferred from Upper version office pc to lower version office pc.
Using the NuGet package manager dialog at the solution level in the normal course of updating a package reference once the process is complete there is a green tick on the item and the update button disappears. However, with certain of my packages the update process completes, as far as I can tell successfully, but no green tick and the update button remains. Press it again and the next dialog shows that no projects require an update for that package.
Am I missing something here or is this a bug?
I found that this can happens when updating Solution-level packages. For some reason, they are updated side-by-side and the older package version causes the update to always appear as applicable. I filed an issue to clarify this behavior: #2062
Another way that this happens is when packages.config is excluded from the project. The package is updated but the new version is not updated in packages.config. Please, make sure that packages.config is included in the project.
This is what I get when I select "go to definition" in the ConfigTests.cs. But I expected to go to already opened Config.cs with actual declaration.
What did I do wrong?
You added a normal assembly reference.
When you Go to Definition on a member not defined in your project (or in Project References), Visual Studio will generate a source file from metadata using Reflection.
Delete the reference, then re-add it as a Project reference (in the Projects tab).
If the project isn't in the same solution, put it there.
This seems to indicate that your reference to the Models assembly is via the compiled DLL, not via the project in the solution. Try the following in the Solution Explorer:
Expand (unfold) the “References” item of the main project in your solution.
Select “Models” and press Delete to remove it.
Right-click on “References” and choose “Add Reference”.
Select the Projects tab (not the Browse tab).
Highlight the Models project and click OK.
Of course, this assumes that the Models project is in your solution to begin with. If it isn’t, you will first have to add it by right-clicking the first item in the Solution Explorer (the Solution itself), choosing “Add”, “Existing Project”, and then choosing the right csproj file for the Models project.