Home Dashboard Directory Help
Search

Database project is dropping references to .Net assemblies by Dmitry Otblesk


Status: 

Active


2
0
Sign in
to vote
Type: Bug
ID: 775029
Opened: 12/22/2012 6:59:35 PM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

In Visual Studio 2010 create a Database project and add some references to .Net assemblies (which are necessary for SQL CLR code to work). This works fine so far, the project builds.

Now close Visual Studio and open it again. All references are gone... The code is showing some syntax problems.
Details
Sign in to post a comment.
Posted by Dmitry Otblesk on 1/25/2013 at 7:33 PM
I've attached your own project (in file Database64DropRef.zip) where I've made the following modifications. I added the reference to System.Xml assembly and used class XmlDocument in the code. The screenshot ReferenceAdded.png shows that the reference was succesfully added. However after solution is closed and then reopened again it looks like shown in screenshot ReferenceDropped.png. The solution still can compile, however it shows syntax errors for no reason, which does not look right.
Posted by Microsoft on 1/25/2013 at 3:30 PM
I'm not seeing this. If you open the attached project System and System.Core references to reappear. If this continues to happen please provide your project via this bug or on our SSDT forums and we'll be happy to look at it.
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
ReferenceAdded.png 1/25/2013 17 KB
ReferenceDropped.png 1/25/2013 171 KB
Database64.zip 1/25/2013 318 KB
Database64DropRef.zip 1/25/2013 289 KB