Umbraco and Visual Studio 2013 is out of sync - visual-studio-2010

I just got my VS 2013 to run together with Umbraco 7, but i just ran into a poroblem. When i for example create a template inside Umbraco i cant see this newly created template inside of visual studio, but i can see that it exsists in the folder together with all the other templates. And ther eare the same problem countervise when i careate a usercontrol in VS i cant see it inside umbraco, are there any way to make them work in sync?
Or maybe there are some other ways to get intellisence help for umbraco instead of VS IDE?

You just need to click on "show all files" and then you'll be able to see it and include in in your project.

Related

How do you change the default programming language visual studio 2013?

I installed Visual Studio 2013 again after I got a new PC, but now when I create a new file it creates it as an VB file instead of c#.
I changed the default programming language in web.config like shown here:
I tried reloading the project but it still does not work.
The web project is placed on a local ftp server.
When you make a new project, under Templates you should see a node for Visual Basic and one for Visual C# with the different types of projects listed under the language. I believe VS remembers which one you used last.
The menu that shows up when you right click on a folder > "Add" shows a list of the options available for that folder ex. if you are in App_code it shows "Class". It seems it doesn't change the first suggestion to C# class even tho you change the programming language. So to fix that you go into the same menu and pick "Add New item..." and select C# Class file ...close it. Now if you try and create a file again it still says "Class" in the Add menu, but when you select it now, it creates it as an C#.
Sovled the problem for me. Thanks to all of you leading me to the answer.

Visual Studio 2010 Toolbox Is Empty

My toolbox is empty.
Obviously, I'm not the first. I read this question and this other question, but that didn't help.
I click here...
I get this window...
With instructions that say: "...Drag an item onto this text, to add it to the toolbox..."
Sounds good; from where do I get such items to drag?
The toolbox is empty because there is no project loaded.
The toolbox is populated with tools/controls according to the type of the current project. The controls are different for MFC than they are for ASP.NET, for example. If you haven't loaded any project, Visual Studio can't populate the toolbox.
Either open an existing project, or go to File -> New Project to create a new one.
Have you tried right-clicking on it and selecting the "Reset Toolbox" option? You can also try to manually add specific tools to it by using the "Choose Items..." option.
A common suggest is also to go into the Visual Studio 2010 Directory and delete all of the .tbd files within the following directory (Related) :
C:\Documents and Settings\Local Settings\Application Data\Microsoft\VisualStudio\10.0"
Although if neither of these options work, you will really want to consider possibly reinstalling / repairing Visual Studio.
Is your project running? I noticed that my toolbox is empty when I am debugging the project. Try stopping debugging.

How to add existing Template to Visual Studio?

Particularly for VS.NET 2013, how do you add a template? I've created a custom template. VS.NET adds it to \Libraries\Documents\Visual Studio 2013\Templates\ItemTemplates. I'd like to know import that template into VS.NET on a different machine.
When I rename the zip template in the above location, that name doesn't show up in the add new item dialogue box in VS.NET. Are there any steps for adding a template?
Maybe you can add the template to [Visual Studio installation path]\Common7\IDE\ItemTemplates\ of the other machine.
And then run the command devenv /installvstemplates in your Developer Command Prompt
Source:
http://msdn.microsoft.com/en-us/library/ms241279.aspx

How add an item template to Visual Studio 2010

Let me elaborate, since the title was a little rough. I have been looking for a way to make a WCF service work with Silverlight for days now. Eventually I come across a mention of something called a 'Silverlight-enabled WCF service'. The only problem is, this doesn't exist in my Visual Studio 2010 (and I have looked).
Someone then asked me whether it appears in Program Files(x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Silverlight\1033. Well it looks to be - there is a file called SLWcfService.zip.
Assuming this is the template I'm looking for, how do I get Visual Studio to add this to the list of item templates that I get when I select a new project?
Thanks.
I don’t about your specific case, but if you have an item up on VS and you want to save it as a template: Click on: File -> Export Template -> and then select Item Template.

VS2010 Intellisense on class files

I have a Web Application Project that I'm working on.
My solution looks like this :
./MyProject/
./MyProject/dataobjects.cs <- no intellisense
./MyProject/sqlquerying.cs <- no intellisense
./MyProject/default.aspx <- intellisense works here
./MyProject/default.aspx.cs <- intellisense works here
./MyProject/mypage.aspx <- intellisense works here
./MyProject/mypage.aspx.cs <- intellisense works here
Visual Studio 2010 doesn't give me any intellisense options when I work on non-code-behind files like Business Logic Layers and Data Logic Layers . In VS2008, I placed these files in the App_Code folder and intellisense worked fine.
What can I do?
Is there a specific folder I need to put these files in to get intellisense?
Found it!
Visual Studio was setting my code files as 'Content' instead of 'Compile' for the build option.
Here's an excerpt from the same question on MSDN forums for anyone who's interested:
if you're having
the intellisense issue, another thing
to check is the "Build Action" for
your code file... just look at the
file's properties and make sure the
"Build Action" property is set to
"Compile".
You may have a "Website" rather than a "Web Application".
In a Website non-page code files need to be either in App_Code or (ideally) in a separate project that is referenced.
You should have intellisense, regardless of where you put your class files. Is this a new VS 2010 project converted from a VS 2008 website?
Try right-clicking the project, and selecting 'Convert to Web Application'.
In a web application, You should have the aspx files, designer files, and code behind files. I have experienced similar oddities when converting a VS 2008 website to VS 2010 web application.

Resources