2

I have now gone over to Visual Studio 2010 Beta 2

I have used it for a few days, but now I can no longer add references from the GAC.

alt text

(http://bildr.no/view/549966)

Sorry since this is not directly a development question, but I was not sure where to ask.

Does someone know how to fix this?

Community
  • 1
  • 1
eriksv88
  • 3,482
  • 3
  • 31
  • 50

3 Answers3

1

Check the Global Assembly Cache. You may have done something very very bad.

EDIT

I noticed you are using Silverlight:

C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0

I cannot find the Microsoft.CSharp.dll I can only find Microsoft.VisualBasic.dll to use. Where is the C# dll located for Silverlight 4? I wasn’t able to find it on my computer.

taken from: http://alpascual.com/blog/a-few-issues-with-silverlight-4-after-installing-visual-studio-2010/

Kuf
  • 17,318
  • 6
  • 67
  • 91
Woot4Moo
  • 23,987
  • 16
  • 94
  • 151
  • Thank you! I will see if this solves the problem! Strange that I do not get any debug info from the VS actually – eriksv88 Dec 20 '09 at 05:31
  • But the question is whether I really need "CSharp.dll" when the project is a VB project? – eriksv88 Dec 20 '09 at 05:34
  • good question, I suppose it depends on if that file was in fact there in the first place. – Woot4Moo Dec 20 '09 at 05:38
  • Possible, this resolves itself if using C#, but the resolution did not work when using VB. Is there any way to read the error log. Some space must be lagget an explanation of the error. – eriksv88 Dec 20 '09 at 05:54
  • eventvwr in the run dialog may be of some value to you. Look at the system logs – Woot4Moo Dec 20 '09 at 05:58
  • Strangely, now I've gone over the system log to Windows 7 And there are not any errors there that is relevant. – eriksv88 Dec 20 '09 at 06:17
  • well I am all out of ideas. Best of luck – Woot4Moo Dec 20 '09 at 06:19
0

I've created a tool which is completely free, that will help you to achieve your goal. Muse VSReferences will allow you to add a Global Assembly Cache reference to the project from Add GAC Reference menu item.

Mosty Mostacho
  • 42,742
  • 16
  • 96
  • 123
BALKANGraph
  • 2,031
  • 1
  • 15
  • 16
0

C:\Program Files\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\Microsoft.CSharp.dll

source

Kuf
  • 17,318
  • 6
  • 67
  • 91
dpz
  • 21
  • 1
  • 3