Expression Web 4: Open visual studio 2010 CSPROJ ? or SLN? - visual-studio-2010

I have recently started to use Web Expression 4. I was under the impression that you can open CSPROJ / SLN in Expression web 4.
When i click File Open I can see both the SLN and the CSPROJ ... but if i choose either it autoamtically loads visual studio 2010.
I thought you could open both??
I want to use expression web 4 for designing my html pages that are in my VS 2010 project.
But of course i want to open the project so i can see all my CSS files and create new ones etc..
Any ideas what i am doing wrong?
The folder list (on the left) in expression web 4 is empty.

The only thing you could in your Expression Web are the ASP.NET web pages (.aspx) and the like.
According to Jim Chesire:
A solution file is simply a "pointer"
to your content. Expression Web has no
understanding of solution files. When
you open the site in Expression Web,
you need to open the location of your
content, not the location of the
solution file.

Related

How do I let Visual studio know about web root different from wwwroot?

Visual Studio shows nice icon and customised context menu for wwwroot directory as a web root.
I am curious, is there any option to let VS know that another directory was designed as a web root with UseWebRoot method and treat it appropriately instead of just showing it as a regular folder?

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.

CoffeeScript VisualStudio 2013

I was trying to use CoffeeScript on VisualStudio Express 2013 for WEB and when i create the file and build the solution wasnt it suppose to create the js files on the folder?
I tried to click on "Show All Files" to see if the file was there but wasnt.
Any ideas?
There are two extensions for Visual tudio:
http://vswebessentials.com/features/coffeescript
OR
Mindscape, a tool and component developer out of New Zealand, has a free extension for Visual Studio 2012 (as well as 2010 and 2013) called Web Workbench that enables editing of CoffeeScript files right inside Visual Studio (as well as Sass and Less files). Just create a new .coffee file, edit away and, when you click "Save," the accompanying JavaScript file is generated and saved as well. http://visualstudiomagazine.com/articles/2013/10/01/top-7-reasons-to-love-coffeescript.aspx

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.

Create plainn HTML> with Visual Web Studio 2010 with NO ASPX within

Can I use Visual Web Studio Express from Microsoft and create web pages that will run on Apache servers?
I mean without the "code behind" stuff, just plain CMS website?
I'm still on VS2008 Pro, but I assume it's the same on VS2010 Express. Just open a plain html file (can be empty) or create a new one. You don't have to create a project or solution to edit it. You should be able to use preview pane, code pane, the css property tools, etc.

Resources