Just installed VS2012 Premium (not express, but the full product). I'm totally new to it and to web programming.
I'm following the tutorial in ASP.NET and when I get here it tells me to
"right-click References and select Add Reference from the right-click menu"
However, the "Add Reference" menu item is grayed out.
How do I get out of this?
Check a couple of things
Do you have the project selected?
Are you in debug mode?
I would ensure you are not in debug. And try not having the projected selected but the folder called references.
Related
So I have been messing around trying to create an Azure Function using Visual Studio code. Frustrated enough to start all over and now according to Microsoft, to create a new project, I have to click the Azure icon on the left hand side and click New Project:
That being said, I don't have it anymore somehow:
Somebody please advise. I'm going crazy here trying to make it reappear.
For me, this option was buried in the sidebar menu in vscode as pictured below. I was not able to get the icons to reappear (I'm on an Apple Silicon machine).
1.Try to uninstall Azure Function Extension.
2.Restart Visual Studio Code.
3.Install the extension again.
The documentation on how to create New Azure Function Project in Visual Studio Code appears to be out of date. I found the solution in the store page of the extension. Open the 'Azure' extension, go to Workspace, click the plus, create function. Proceed as normal as per the MS Docs. Uninstalling did not work for me as #bala suggested.
Yeah, I did not had the button to create a new local Azure function.
I uninstalled Azure function plugin and after the refresh the button appeared. When I clicked the button, it informed me that I need to have Functions plugin installed.Then I reinstalled the plug-in and the button disappeared.
Restarting and Updating VSC fixed the issue.
I have a previously compiled dll file. I've lost the source code unfortunately.
But I know the functions, header names and namespaces on it.
Is it possible to add this dll to a new project in VS? If so what code should I use? (not sure how to use dllimport in this case)
Both the DLL and the new project are on C++ .net 2.0. I'm using VS2008
You should just have to add a reference to your project that points to the dll.
Right click the project-> go down to add -> reference. Or Expand the Project and right click the references node and click add.
This opens a dialog with 4 items to the left. click on browse then click the browse button at the bottom. Find your dll and click add and then Ok to close the dialog.
After that use it as you would any other dll.
Using TFS I'm used to this view in the "Team Explorer - Home"
But now, when pressing the "Home" button, nothing appears:
I haven't found any settings which collapses this view. Any suggestions?
You need to be connected to a Team Project. In the first screenshot you're connected to Fabrikam Data Project, but the second screenshot it doesn't look like you have an actual project selected. If you click the Title ("Home") and go to Select Team Projects you can pick the Team Project + TFS Server you want to connect to. Then when you come back to Home you should see all the options.
That looks like 2 different versions of Visual Studio. Make sure you're on the most up-to-date version (2013.4)
When I open the Source Control Explorer in VS2012 I can only see what files I have checked out. If my co-worker checks out a file I cannot see a red check mark, it does not say "edit" under the Pending Changes column, there is no name listed under the User column. There is no indication that the file is checked out at all.
Same thing in reverse. He cannot see which files I have checked out. So far we experimented with only 2 Team Projects. One was a Web Site project the other a Web Services (asmx) project.
I found this Visual Studio 2012 not integrating properly with TFS explorer
When I go to File|Source Control|Advanced I do not see a "Change Source Control" option.
Suggestions?
How embarrassing...we just figured it out.
The Team Project allows multiple check-outs, so it makes sense that we were both able to check out the file(s), the issue was that we couldn't see which files the other had checked out.
Part of my issue was I had "Team Project 1" open in my Team Explorer, but a solution from "Team Project 2" open in Visual Studio. So I think that's why I couldn't see the "Change Source Control" option. As soon as I changed the Team Project in Team Explorer I was able to see the "Change Source Control" option (File|Source Control|Advanced|Change Source Control).
Once I opened the "Change Source Control" screen I saw that my solution and project were unbound. I bound them. Then I went to my co-worker's machine, his were also unbound. I bound them. We are able to see each other's check-outs in Source Control Explorer now.
I was trying to add coded UI test project to an existing project in Visual studio 2010 premium. I right click in the solution explorer and click Add new Item and it doesnot show any option of Coded UI test. Is there anything I need to install so that I can see those project options?
Regards,
Lalith
Ok, I got it. We have to first add test project and then right click that project to add Coded UI test.
Lalith