[CSHARP-165] Mongo DLLs don't show up in .NET tab of Add References in Visual Studio 2010 Created: 01/Feb/11 Updated: 02/Apr/15 Resolved: 02/Mar/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Setup |
| Affects Version/s: | 0.11 |
| Fix Version/s: | 1.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Σ Remaining Estimate: | Not Specified | Remaining Estimate: | Not Specified |
| Σ Time Spent: | Not Specified | Time Spent: | Not Specified |
| Σ Original Estimate: | Not Specified | Original Estimate: | Not Specified |
| Sub-Tasks: |
|
| Description |
|
The setup program for the C# driver writes values to the registry telling Visual Studio to add the Mongo DLLs to the .NET tab of Add References. This is working in Visual Studio 2008 but not Visual Studio 2010. |
| Comments |
| Comment by Robert Stam [ 16/Mar/11 ] |
|
Just tested on my machine (Windows 7 64-bit and VS 2010) and it worked. I didn't actually look at the registry, but the MongoDB DLLs showed up in the .NET tab of the Add References dialog. I did have to exit Visual Studio and restart it. It seems that Visual Studio only looks at the registry entries as it is starting up. |
| Comment by Justin Dearing [ 16/Mar/11 ] |
|
These registry entries are not getting created on my home machine (Windows 7 RTM Visual Studio 2010). Did this break for everyone or just me? |
| Comment by Justin Dearing [ 02/Mar/11 ] |
|
BTW any sharpdevelop fan's accefted by this might want to voice their opinions here: http://community.sharpdevelop.net/forums/p/6261/34909.aspx#34909 |
| Comment by Robert Stam [ 02/Mar/11 ] |
|
Applied your changes and it is now working with VS2010. Thanks! |
| Comment by Justin Dearing [ 02/Mar/11 ] |
|
Ok cool. This should apply cleanly https://github.com/zippy1981/mongo-csharp-driver/commit/9cc119b029612a8c42e5dda9929e5df7bca680ed I also made sure the registry entries cleaned themselves up. Unfortunately, it does not seem that the reference shows up in SharpDevelop's add reference dialog. However, I believe that simply inspects the GAC so it is doubtful that anything but strongly signing the assemblies will deal with that. |
| Comment by Robert Stam [ 02/Mar/11 ] |
|
Hi Justin, FYI, I just split the Setup project out into a separate Visual Studio This is because the setup project is not supported by Mono, so opening the Thanks for looking at this! Robert |
| Comment by Justin Dearing [ 02/Mar/11 ] |
|
As per Connect this is "Won Fix" "By Design" http://connect.microsoft.com/VisualStudio/feedback/details/464577/ You have to use AssemblyFoldersEx as illustrated: http://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.80).aspx Expect a patch shortly. |