RSS

Tag Archives: Visual Studio

Update NuGet.exe

NuGet allows you to update third party packages, which you have referenced in your projects, but how do you update NuGet itself? After updating NuGet from the Package Manager, the old NuGet version will remain in the .nuget folder of your solution. In order to update the executable you have two options:

  • Delete the .nuget folder from both, the solution folder and from disk. Then you should restart Visual Studio. After restarting and opening the solution, you have to right-click on the solution node and select Enable NuGet package restore. This command will copy a new version of NuGet into your solution folder and reference it. The drawback is that if you did not backup the nuget.targets you will lose every modification that you did on this file.
  • open the command line, navigate to the .nuget folder and execute the following command:
    nuget.exe update -self

After completing one of both steps you should have that, the new version of NuGet got copied into the solution.

 
Leave a comment

Posted by on February 13, 2013 in Visual Studio

 

Tags: ,

Projects have recently been added to this solution. Do you want to get them from source control?

Do you ever have this exception during the opening of a solution?

Projects have recently been added to this solution. Do you want to get them from source control?

What is this exception saying? In my case it was that, I have created a new project on another computer. Then I checked-in the solution changes without checking-in the changes of the new project. After checking-out the changes on another computer, I got this exception. Now the issue is clear. The solution file has the information about the new project but the new project does not exists on the Team Foundation Server. You can see that the solution file has the information about the new project by opening the Solution Explorer. There should be a project that has a name that contains the description “unavailable”. To resolve the problem, either delete the newly created project or check-in any changes from the computer where you created it.

 
Leave a comment

Posted by on December 6, 2012 in Visual Studio

 

Tags: ,

Visual Studio 2012: Framework does not meet the minimum required version

Today I tried to upgrade my Visual Studio 2012 RC to the RTM version. But I got an error saying that i do not have installed the required .NET Framework.

The .Net Framework installed on this machine does not meet the minimum required version: 4.5.50709.

So I thought that maybe the problem is that in order to install the RTM of Visual Studio I have to install the RTM version of the .NET Framework. Therefore I thought that if will I download the .Net Framework 4.5 and install it I can proceed the Visual Studio installation process. I was wrong.
But after starting the setup file of the .NET Framework it shows me following error:

Microsoft .NET Framework 4.5 is already a part of this operating system.  You do not need to install the .NET Framework 4.5 redistributable.

Well that’s strange. Never mind. I could not install the RTM version of 4.5 and therefore I cannot install the RTM of Visual Studio.

After some web researches I got the answer that in order to install the final version of Visual Studio 2012 I have to have the final version of Windows 8.
Everybody that runs a Windows 8 Release Preview (or lower) needs to wait until they gets a full copy or they can download the 90 days trial version of Windows 8.

 
Leave a comment

Posted by on September 5, 2012 in Visual Studio, Windows 8

 

Tags: , ,

Property editing not available

If you open the XAML-Editor in Visual Studio 2010, select a Control and open the Property-Editor and you get the message “Property editing not available” the simplest solution is that you open the Design-View and then switch back to the XAML-Editor. Then you get back the Property-Editor.image

 
2 Comments

Posted by on May 10, 2012 in Visual Studio, WPF

 

Tags: ,

The Solution appears to be under Source Control, but its Binding Information cannot be found.

You might get following error during opening your solution in Visual Studio 2010 if you have a workspace located on a Team Foundation Server 11.

The solution appears to be under source control, but its binding information cannot be found. Because it is not possible to recover this missing information automatically, the projects whose bindings are missing will be treated as not under source control.

This is because you might have upgraded your workspace with Visual Studio 11 to a local workspace.

image

In that situation you can no longer open your solution with Visual Studio 2010. If you try this you will get the error as shown above.

Solution steps:

  1. Create one server workspace for Visual Studio 2010 and another local workspace for Visual Studio 11

    1. Open the Source Control Explorer in Visual Studio 11.
    2. Open the Drop Down Button right of the Workspace Label.image
    3. Select Workspaces.
    4. After opening the Manage Workspace window click Add.
    5. Enter a name to identify that workspace.
    6. Under Source Control Folder select the folder you want to map.
    7. Under Local Folder select the folder where you want to map to.
    8. Then click Advanced.
    9. The next step is the important one:
      1. For Visual Studio 2010 you need a workspace that has its Location on the Server.
      2. For Visual Studio 11 you may open workspaces with both types.image
  2. Change your local workspace to a server workspace.

    1. Follow Steps 1.1  to 1.8
    2. Select as Location Server.
 

Tags: , ,

Source Control Explorer is grayed out

If your Source Control Explorer menu item is grayed out, you need to check whether you have selected any Source Control plug-in. In order to check that you need to do following steps.

  • Open the Tools menu.
  • Select the Options menu.
  • In the tree view select Source Control.
  • Under Current source control plug-in with value None select either:
    • Visual Studio Team Foundation Server
    • Or Any other source control provider that is in the list and you want to use.
 
Leave a comment

Posted by on March 16, 2012 in Visual Studio

 

Tags:

Update SQL Database Project Scripts from Database

If you create an empty SQL Database Project and if you already have an existing database with tables, stored procedures, etc. you can use following steps to create or update the SQL Database Project.

  • Open the Solution Explorer.
  • Right click on the SQL Server Project
  • Select Schema Compare

image

  • Click the Switch source and target button in the middle, to swap the DatabaseProject to the right.
  • Select left in where the source field is in the drop down menu Select Source.
  • In the window that opens insert all SQL Credentials of the database.
  • Then After inserting Click the Compare button to list all differences
  • If the Database Project is empty you will get a list of all objects of the database. But if the Database has only a few changes you get a list as the following:

image

  • As you can see, you will immediate get a overview about what has changed.
  • Now you can select the changes you want to update and click the Update button.
  • That’s all. You have successfully updated or created the Database Project. Now the Database and the Database Project has the same schema.

If you desire you can also do the reverse way and update your database with the changes made in the SQL Database Project. But I do not suggest to do that this way. You should do that by publishing the SQL Database Project to the SQL Server. Doing that you can provide a Pre- and Post-Deployment Script. In those script you  can integrate queries to migrate data during the deployment process.

 
Leave a comment

Posted by on March 16, 2012 in SQL, Visual Studio

 

Tags: ,