CSS 3.0 in Visual Studio 2010 - visual-studio-2010

I would like to use Validation (CSS 3.0) instead of CSS 2.1 for Visual Studio 2010. I've scanned through SO and noticed a comment saying that 3.0 wasn't finalized so it wasn't available for 2008, but was unsure if this applied to 2010.
Do I just not use CSS 3?

Microsoft developers have released an update to the web standards to include CSS 3.0 in Visual Studio.
Web Standards Update for Microsoft Visual Studio 2010 SP1
http://visualstudiogallery.msdn.microsoft.com/a15c3ce9-f58f-42b7-8668-53f6cdc2cd83
After a simple installation, you will have the CSS 3.0 option in Visual Studio.
(The toolbar command is called "Cascading Style Sheet Version for Validation", and is on the "Style Sheet" toolbar.)

If you don't want to wait for the service pack, check this out:
http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210/view/Discussions
Worked great for me, although I needed to consult the Q & A for some installation tips.

I looked a couple months ago and couldn't find CSS3 support either. I just use the W3C online validation tool.
http://jigsaw.w3.org/css-validator/

For Visual Web Developer 2010 Express use this:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\10.0\Packages\{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5] "File"="css30.xml" "Friendly Name"="CSS 3.0"

I did this for Visual Web Developer Express 2010:
Install this package.
Find in registry any key with css21.xml
Save keys as .reg
Edit keys changing "css21.xml" by "css30.xml" and "CSS 2.1" by "CSS 3.0"
Save it
Execute .reg files and click YES to add the new keys to the registry
You're done!!
Example:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5]
"Friendly Name"="CSS 3.0"
"File"="css30.xml"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VWDExpress\10.0\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5]
"Friendly Name"="CSS 3.0"
"File"="css30.xml"
[HKEY_USERS.DEFAULT\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5]
"Friendly Name"="CSS 3.0"
"File"="css30.xml"
[HKEY_USERS\S-1-5-18\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5]
"Friendly Name"="CSS 3.0"
"File"="css30.xml"
[HKEY_USERS\S-1-5-21-819682056-1984509207-1467669795-1000\Software\Microsoft\VWDExpress\10.0_Config\Packages{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas\Schema 5]
"Friendly Name"="CSS 3.0"
"File"="css30.xml"

Related

Windows Service Template for Visual Studio 2017

The Windows Service Template no longer displays by-default for new projects in Visual Studio 2017....and the installer has no 'search' capability.
All this AZURE stuff is great, but I still gotta do normal 'on-prem' work too...and I hate maintaining 2 versions of Visual Studio.
Any thoughts here?
Just checked here. I see project "Windows Service (.NET Framework)" under the Windows Classic Desktop folder under Visual C#.
(Visual Basic has a similar entry.)
Only some templates are shown in parent folders, for more specialist templates you need to be more specific.
But also the search finds both.
NB I selected ".NET Desktop" workload on install, which I see you have not.
Check the .NET desktop development option in the installer, then click Modify.
VS2017 --> New project --> Visual Basic or Visual C# --> Windows Classic Desktop --> Windows Service
Also check out this recent post (currently dated 2017-3-30) from MS to do it without the project template:
How to: Write Services Programmatically
The key points are as follows:
Create a new project
Add "System.dll" and "System.ServiceProcess.dll" as References
Create a class inheriting from ServiceBase and create a Program.cs with Main exactly like the template project does
If you are talking Windows Template Studio Universal then You have to install the extension in Visual Studio.
Go to Tools menu >> Extensions & Updates >> Online >>then search for Windows Template Studio
OR go to https://marketplace.visualstudio.com/items?itemName=WASTeamAccount.WindowsTemplateStudio#overview

Failed to install Qt 5 Visual Studio add-in

My computer lost power by accident while installing qt-vs-addin.
After that I restarted my computer and found that the installation was incorrect.
I tried to install it again. But a dialog showed:
A previous installation of Qt 5 Visual Studio Add-in was detected. Please uninstall it before running this installer.
Unfortunately, I couldn't found qt-vs-plugin in: Control Panel -> Uninstall a program.
What should I do to remove the previous installation?
The solution found here suggests that it should be enough to delete the following registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Qt Visual Studio Add-in 1.1.11 – C:_Program Files (x86)_Qt4VSAddin]
- or some variation of it, depending on your plugin version, VS version and OS version.
I can find add-in 1.2.4 from the Control Panel and unstall it.I don't know if due to I delete [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\xxx(seach for add-in for qt) from Reg table before.

No Entity Data Model (EDMX) Template with Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

I'm having a lot of issues with the templates of Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1
I noticed that other people had these problems, and asked similar questions, but I don't think they gave enough information to make it solve-able.
The Problem: ADO.NET Entity Data Model Templates are not appearing whatsoever
Screenshot: http://c0848462.cdn.cloudfiles.rackspacecloud.com/f067439f6e8f25d5fd36761fd1efc88a74fd765ff1.png
Solution File
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "localhost", "http://localhost:36626", "{9BA46BAD-E736-4943-ACAD-EDE2E7A1A21E}"
ProjectSection(WebsiteProperties) = preProject
UseIISExpress = "true"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
Debug.AspNetCompiler.VirtualPath = "/localhost_36626"
Debug.AspNetCompiler.PhysicalPath = "..\..\My Web Sites\Jantire\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_36626\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/localhost_36626"
Release.AspNetCompiler.PhysicalPath = "..\..\My Web Sites\Jantire\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_36626\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
SlnRelativePath = "..\..\My Web Sites\Jantire\"
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9BA46BAD-E736-4943-ACAD-EDE2E7A1A21E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9BA46BAD-E736-4943-ACAD-EDE2E7A1A21E}.Debug|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Relevant System Specs:
Visual Studio 2010 Professional SP1
ADO.NET Entity Data Model 4.1
ASP.NET MVC 3 Tools Update
Windows 7 x64 SP1
WebMatrix
I'm coding this using both WebMatrix and Visual Studio 2010 Professional SP1
Open the install media for VS2010 and browse to ":\WCU\EFTools".
Her you will find two files:
ADONETEntityFrameworkTools_enu.msi
ADONETEntityFrameworkTools_enu.cab
Copy those files to a folder on your PC.
Create a log file in the folder - for instance with the name "Log.txt"
Open a cmd prompt (possibly run the cmd prompt as administrator) and navigate to the
folder with the msi and cap files.
Run this command:
ADONETEntityFrameworkTools_enu.msi USING_EXUIH=1 /log "Log.txt"
It will take a while to install so be patient.
The installation should now be visible in "Control Panel -> Installed Programs" as "Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools".
The items template should be visible in Visual Studio when adding a new item to a project. (Add New Item->Data->ADO.NET Entity Data Model).
More info here: http://msdn.microsoft.com/en-us/library/ee225240.aspx
Actually, you will have to add simple class library project, and do "Add New Item" and then you will find ADO.NET Entity Data model.
(It seems from newer versions, they have removed this project template, and offering it as "New Item". I was searching for it, then found it like new item instead of new project template. though this MSDN link shows ado.net entity data model as new project :( http://msdn.microsoft.com/en-us/data/ff830362
When you install Visual Studio there is separate component called Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools. You can check that this component is installed in your computer simply by checking installed programs. If the component is not installed you must probably install it again from VS intallation media.
You mentioned that you have a Professional version but still I would expect that your Add New Item will contain much more features - I don't see groups for Windows Forms, WPF and Workflow - all valid groups. It looks like your installation is somehow incomplete or you are using some project template that perhaps don't offer all groups.
Installing EF 4.1 will not add necessary parts from EF 4 which are part of VS installation. EF 4.1 has these features as prerequisity.
My solution was that my brand new project was inexplicably set to use .NET 2.0 in the project settings. Once I set it to 4.5, the template appeared.
The template could be downloaded from the following link.
microsoft.com ADO.net 4.1 download
Restoring default project templates proposed in the majidgeek answer did not help me (with Visual Studio 2012).
Repairing Visual Studio neither.
I had used a Web Installer from MSDN to install VS2012, so i had no installation media to apply the solution suggested in the AH. answer.
However, the accepted answer from here solved my problem:
http://www.datazx.cn/Fv7p5a/xw-US/oaax2pu/2q7xs6/d8x6rssc-b4mt-fsix-bc6c-ct8mf8d6fsbc23rsdfd.html
I finally figured it out. I ran EFTools.msi from a C:\ProgramData\Package Cache\ subfolder, which only allowed me to 'uninstall' or 'repair'. I tried repair, but I get the same problem, so I did 'uninstall', then ran it again and it allowed 'install'. After this install, I can now add Entity Data Models.
Also, the accepted answer in the "Missing Entity Framework Template in Visual Studio 2012 Express for Web" threat on forums.asp.net suggests that repairing Entity Framework Designer for Visual Studio 2012 enu via 'Start -> Control Panel -> Programs and Features' might work as well (I can post only two links with my current 1 point Stackoverflow reputation, so I won't provide the exact source).
Another possible solution:
My Problem was: Visual Studio is installed on Drive D:\, whereas the Entity Framework Installer placed the Package in c:...\VisualStudio 10.0\Common7....\ItemTemplates folder.
--> Copied the AdoNetEntityDataModelCSharp.zip to drive d: and ran devenv /installvstemplates.
This fixxed it for me.
Edit:
Also had to copy Various DLLs from IDE folder, PrivateAssemblies and PublicAssemblies.
then run devenv /ResetSkipPkgs
http://social.msdn.microsoft.com/Forums/en-US/c059069b-eae4-48b4-a06e-ffd5f186077b/adonet-data-entity-model-template-missing-in-vs-2010-ultimate?forum=adodotnetentityframework
I also installed VS in a non-default path (different disk partition), so it indeed may be one of the potential causes of the problem.
I had uninstalled VS2012 Ultimate trial and installed VS2012 Premuim and had this happen. In Windows 7 Control Panel\Programs\Programs and Features I found "Entity Framework Designer for Visual Studio 2012 - enu and did a repair and that fixed everything.
try Restore Default Project Templates.
if you already installed full VS and template not appears try to run VS2010 setup and and click Repair/Reinstall and after that processing finished,restart system.
I was finally able to add the template. I had to reinstall the EntityFramework 4.1 and then reinstall the visual studio templates. Here are the steps:
Install EntityFramework 4.1 from http://www.microsoft.com/en-gb/download/details.aspx?id=8363
Using Visual Studio command prompt, navigate to IDE, run devenv /installvstemplates
search in C:\ProgramData\Package Cache for EFTools.msi and install the latest.

"silverlight for Windows 7 Phone" option is not shown in "Add new Item" option

I have downloaded and installed Microsoft Visual Studio 2010 Express for Windows 7 Phone. Problem is that i cant see "Silverlight for Windows Phone" option when I right click my Project name and select Add -> New Item option. I can only see "XNA Game Studio 4.0" under "Visual C#" category.
I have tried installing Silverlight SDK separately by downloading it from Microsoft site but the installer tells me that i have already installed the newer version of the SDK. Due to this problem I can't use few Silverlight classes like ChildWindow etc.
Can anyone please help me in this regard?
I personally haven't had problems with the WP tools install, but I have witnessed others having problems. The only advice I can give is to uninstall all the tools, sdk, etc and reinstall with the latest.
It's a pain, but might be necessary unless someone has a better idea.
The instructions at http://msdn.microsoft.com/en-us/library/ff402526(v=VS.92).aspx say
Make sure you have downloaded and installed the Windows Phone Developer Tools from the App Hub.
So my advice is to make sure you've done that.
Right having just struggled with this myself I finally found an answer.
If you have a Full version of Visual Studio installed it will not install the templates to the Phone version of C# express (turns out it is actually a different executable to the standard C# Express, go figure)
So to resolve this you need to do a couple of things:
Snippets
First, add the path to the Snippets in the snippet Manager using "Tools -> Code Snippets Manager"
Click on "Add" and enter the following Path:
C:\Program Files (x86)\Laurent Bugnion (GalaSoft)\Mvvm Light Toolkit\Snippets\CSharp\
(Note ignore the (x86) if you are on a 32bit system)
This will install the installed snippets into VS Express.
Templates
Now this is a little more tricky but bear with me
Copy the MVVM folder from:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Silverlight\
To
{Documents Folder}\Visual Studio 2010\Templates\ProjectTemplates\Visual C#\
(Replacing the {Documents Folder} section with your My Documents folder)
Repeat the above replacing ProjectTemplates with ItemTemplates
Finally!!
To finish this off you have to tell VS Phone Express to actually install the templates
Run a Command Prompt with administrative privileges (either create a command line short-cut on the desktop and right-click run it with admin privileges or use the VS tools command prompt)
Run the Following command in that window
"c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\VPDExpress.exe" /installvstemplates
(Note ignore the (x86) if you are on a 32bit system)
If all goes well you should see nothing happen :D, but if you run VS Express for Windows Phone now you will have the new templates installed and the item templates plus the all useful code snippets
Hope this helps!

Is it possible to add HTML5 validation to Visual Studio?

I'm working on a page using <canvas>, which is a HTML5 tag, in Visual Web Developer Express Edition 2008, and the validator in the HTML editor is telling me it's an invalid tag. That's because it's set to validate against XHTML 1.0 Transitional. I'd prefer for it to not do that and tell me what's valid or invalid based on the HTML5 doctype, but I can't find anywhere in the preferences that suggests this would be possible.
Is there a way to tell Visual Studio to validate against HTML5, or add a new spec reference manually? I'd prefer not to have to go in and add tags manually, which appears to be the only option at the moment.
It looks like the Visual Web Developer team solved the problem by adding HTML5 support themselves:
http://blogs.msdn.com/webdevtools/archive/2009/11/18/html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx
You all probably know that new HTML 5 standard is coming. We made a new intellisense schema that you can add to VS 2008 or VWD Express 2008 and get intellisense and validation on HTML 5 elements.
For Visual Studio 2010 you'll want to install the Web Standards Update for Visual Studio 2010 SP1:
It updates the HTML5 intellisense and validation to reflect the latest
W3C specifications and fixes some bugs bugs in the current SP1 support
for HTML5. Also JavaScript intellisense it updated to reflect many of
the new browser capabilities such as Geolocation and DOM storage.
Finally, this update adds comprehensive CSS3 intellisense and
validation based on the latest specifications from W3C.
For Visual Studio 2008, Microsoft has provided an updated version of the HTML 5 validation schema and intellisense in the Visual Studio Gallery.
HTML 5 Intellisense
The updated schema was posted by Mikhail Arkhipov, the same Microsoft employee who wrote the blog post linked in Rahul's answer.
I created a validation schema that you're free to use:
http://johndyer.name/post/2009/07/21/HTML5-XHTML5-Validation-Schema-for-Visual-Studio-2008.aspx
This is now included in Visual Studio 2010 SP1
You can define your own validation standards.
You need to add the file to the folder in VS install, and add to the registry.
This is the description I used (HTML and CSS have a very similar approach): http://blogs.msdn.com/mikhailarkhipov/archive/2007/10/19/how-to-create-custom-css-intellisense-schema-in-visual-studio-2005-and-2008.aspx

Resources