Syntax Highlighting with NVelocity in Castle MonoRails - visual-studio-2010

I'm working with Castle Monorails and NVelocity as a view engine. The syntax highlighting works when I go to Tools > Options > Text Editor > File Extension and add "vm" to "HTML Editor" on Editor Experience.
Here's the exception:
When a file does not start with a tag, but with velocity syntax, the syntax highlighting fails. Example
#*
Some comment with development notes about this file..
*#
<div>
<p>The actual markup</p>
</div>
Anyone have a fix for this issue?

Try using CVSI (Castle Visual Studio Integration), it's a colorizer and IntelliSense for NVelocity.

I downloaded CSVI for my VS 2013 and nothing worked (neither color coding nor intellisense)
I also removed Cached registry values, tried rebooting my system nothing worked. Color coding works in VS 2005 but not on 2010 or 2013. Am I missing anything?
here is what I did I have downloaded vsix file and ran it it opened a command prompt and did something and nothing happens after that. Any suggestions are much appreciated.
http://jonorossi.com/blog/2014/05/31/castle-visual-studio-integration-0.5.0/
Thanks
Here is what I did
1. renamed vsix to zip updated extension.vsixmanifest XML file to support .net 2.0 version to 4.5
2. Built a zip File again with all libraries and manifest file then renamed it back to vsix.
3. Right CLick on .vsix file Open With MS Visual Studio Version selector and then Install.
The above 3 steps did the trick.

Related

Why does the CSS editor not work?

A few months ago I imported the HTML5/CSS3 update into Visual Web Developer 2010, and after the update ended I could not open CSS files in the Visual Studio editor. When I try I get the error:
The operation could not be completed. Unspecified error
Here is a image of the error:
I have opened the file successfully in Notepad++, but can be a hassle to do that every time I need to edit CSS or want to debug and switch windows.
Why is this happening? What can I do about it? Is my CSS editor broken for good?
Turns out since I had installed the Web Standards Update for Visual Studio 2010 S1, it didn't work. All I had to do was open the installer again and repair the update. I can now open .css files again!
EDIT
Useful link I used: http://social.msdn.microsoft.com/Forums/en/vssetup/thread/e505875a-0b74-4d46-987b-e376f958b9bc

some solution files still have the VS10 icon

I have installed Visual Studio 2012 (aka 11) and uninstalled 2010. However I noticed that solution (.sln) files show an icon that has a little "10" on it while others have "11", with no seeming pattern. They are all solutions that I started out using in 2010 but have since worked on in 11. Why is this?
EDIT:
I noticed that I if I open the .sln file in a text editor, the "10" icon corresponds to:
Microsoft Visual Studio Solution File, Format Version 11.00
And the "11" icon corresponds to:
Microsoft Visual Studio Solution File, Format Version 12.00
Yes you read that right (!!!)
EDIT:
What if I change the .sln file in the text editor from 11.00 to 12.00? Is that recommended?
From what I've been able to figure out:
If you make any change inside Visual Studio that causes it to change the .sln file (i.e. adding a text file at the solution level, then deleting it, then doing "Save All"), the header of the .sln file will change to:
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
and the icon will change to "11".
You can manually change the header if you want and the same thing will happen.
However, the icon and header really don't matter... you can leave it as is and everything will work fine because the file format is the same as VS2010.
I'm not sure what will happen if you change the headers to 12.00 as above and then try to open it in VS2010
Ignore the file format version number. It would have kept in sync with the VS version number, if it wasn't for VS2003, version 7.1. Essentially a major maintenance release for VS2002, the version that first introduced .NET support. So it's off-by-one right now.
The file format versions have increased with every VS release. That caused a lot of pain, when you worked in a team you'd have a pretty big headache if not all of the team members moved to the next version at the same time. Lots of questions about it at SO.
That changed in VS2012, it is the first version of VS that can read and write the solution and project files of the previous version. Which explains what you see, your VS2010 projects just never got converted, even after opening it in VS2012. Nice feature.

.TT file not working as expected in editor

I have installation of VS 2010 SP1 with T4 editing and modelig tools installed problem is that suddenly all icons fro .tt files gone and it has unknown icon. when I open it in VS simple text editor is opened not tengable nothing is working reinstalling extention did not fix the problem. I have notification when I open vs that there are extension updates available and it says that modeling and editing tools update is available. but when I click download button nothing happens. Pleas someone recommend something my projects heavily depend on .tt.
I found that there was a problem with Visual Studio installation so After clean reinstall everything works perfect

can't open a vbproj under vs 2005

I am trying to open a “vbproj” file that was written in .net 2.0 under Visual Studio 2005.
The problem is that when I try to open it with VS 2005, the conversion wizard appears and asks me to convert that project.
Please any one has met this issue..?
I need your help
Thanks you in advance
The vbproj metafile has to be from a previous version. If you open that file in a notepad text editor you can verify the version in there. You should covert regardless without any major issues. Just back up the source and the associated .vb files.

VS 2010 Error: ...csproj Cannot Be Opened

I'm trying to launch a project created by someone else in my local environment. I'm currently using the following products:
Visual Studio 2010 Ultimate version 10.0.40219.1 SP1 Rel
MVC 2
Windows 7 Ultimate
But when I double click on the .sln file I get the following error:
C:\Users...\Desktop\ContactManager\ContactManager\ContactManager.csproj : error : The project file 'C:\Users...\Desktop\ContactManager\ContactManager\ContactManager.csproj' cannot be opened.
The project type is not supported by this installation.
Please help me load my project. :)
Thank you,
Aaron
Turns out that I just needed to install MVC version 3. I guess the project that I was trying to open is using MVC3 and my machine only had 2 as you can see in my environment list above. I'm glad I was able to fix this BUT give me a better error message for crying out loud. Sheesh. ;)
Aaron
I've come across this before. In my case, I had installed Microsoft SQL Server and, more importantly, BIDS. Whenever I would open a project that was created in VS2008, the VS version selector would identify this as a 2008 project and BIDS would try to open it (and this error would occur). What I did as a work-around is I would right-click on the .sln file and use the "Open With" to select VS2010. If that also works for you, you can change your defaults for what opens .sln files.
Another way to test this is to open VS2010 and then use the "Open Solution" menu option to open your solution. If this method works, you know the issue is the default program that is opening your .sln files.
In my case project needs to have MVC3 so at first i checked i have MVC3 template in Visual Studio 2010 (service pack 1 installed). I downloaded MVC3 installer frowm following link:
https://www.microsoft.com/en-pk/download/details.aspx?id=4211
After installing my issue get resolved.

Resources