Is there a way to create a Visual Studio project template that provides Intellisense for custom HTML elements? I know I can add the xsd to the commonHTML schema, but i'd prefer it only be available for my project type.
Thanks for the help!
Create a separate .xsd file (dont change the existing one) and add it to the "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Packages\schemas\html" folder.
Then copy and paste this to a .reg file (change http://schemas.microsoft.com/intellisense/ctrls to your own namespace), and run it.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\http://schemas.microsoft.com/intellisense/ctrls]
"File"="html\\your_file.xsd"
"Friendly Name"="Your Name"
"IsBrowseable"=dword:00000001
Then you can select it for your project in the drop down list with target schemas for validation.
Related
I have a Visual Studio 2019 project that I made using Report Server Project Wizard. In this project, I import reports (.rdl) files from a different report server project. To add a report, I right click on the project in the solution explorer and do Add > Existing Item and then choose the .rdl file and then it gets included in the project. Is there any way to include the reports (.rdl) files programmatically in the project? For example, can I create a C# console app to copy (.rdl) files from one report server project and then actually add them into a different report server project. Simple copying and pasting .rdl files from one project to another is not working - the file even after it is pasted doesn't show up in the project.
I have tried using EnvDTE to access the solution and project objects, but all the online sources, such as this - https://flylib.com/books/en/3.50.1.50/1/, that provide info on EnvDTE have example code written in VB and it shows you how to create a new solution and project objects and then add a file. What I want is programmatically access the object of the current(existing) report server project and somehow programmatically add .rdl files from another folder into this project. Is that possible?
Thanks
Unless you have hundreds of projects, I can't see the point of building something that is pretty easy to do anyway. You can select multiple files when you do "Add Existing Item".
Having said that, all you need to do is copy the file to the target project folder and then add an entry into the project file in an item group
e.g.
<ItemGroup>
<Report Include="My First Report.rdl" />
<Report Include="My Second Report.rdl" />
<ItemGroup>
You could probably get away with processing this as a simple text file.
I am developing an asp.net application where some dbml files have been created. When I click on a dbml file called "Test.dbml" and that I unfold it, I get the three following files :
Test.cs
Test.dbml.layout
Test.designer.cs
However when I create a new dbml file and that I unfold it, I only get the two following files :
Me.dbml.layout
Me.designer.cs
I don't understand why I don't get the Me.cs like the existing dbml.
I only have access to the old code, not to the developper who code it so I cannot ask him the question.
Thanks in advance foryour help.
By default VS generates a .dbml.layout (visual layout) and .designer.cs (C# generated code) in addition to the .dbml file (XML definition of the mappings)
If you were to put your code in the .designer.cs file it would get lost so VS can also generate a .cs file for you to put your code in.
Simply right-click on the DBML and choose View Code.
At compile time the .cs and .designer.cs are effectively merged together as they are partial classes (the partial keyword needs to be on the class definitions)
I am a Java developer and have no experience in Flash, so sorry in advance if some of my questions will look stupid :)
I got some source code in this hierarchy and structure:
-sources flash builder
-com
-greensock
-deng
-fzip
-utils
-org
-flintparticles
ALAccessibility.as
ALEvent.as
ALImage.as
ALVideo.as
ALVideoOld.as
Project.as
Project-app.xml
Folders are marked with - sign. I didn't write in details what is inside of every folder (they have a lot of .as files)
How to open these files and folders as a Flash (I don't know exactly as an Action Script or Flex or something else) project? I also have project.swf file.
I have the Adobe Flash Builder 4.7.
I think you might be doing the import one folder too "high".
Usually the file structures you posted here are within a /src directory which is inside a project directory. There should be an Eclipse project file (.project) in the folder you're targeting for the import.
I don't think it works any differently from importing a Java project into Eclipse.
If that's not available, you'll have to create a new project and copy everything you have into that project structure - it's possible you've lost some project config (build path, compiler settings, etc) if the raw source is all you have...
In Flash Builder. File -> Import Flash Builder Project. Select "Project Folder" and Browse to the folder. Follow any instructions that may appear afterward.
Does anybody know how to get VS 2010 to use the same highlighting for a file called .JSON as it uses for a JavaScript file? Just working on a client site and they've named all their JSON template files as .JSON, with the result that I just get a plain old text editor when I open it in Visual Studio. Any suggestions? I'm sure there must be an option somewhere that would do it but I can't find it so far...
Tools -> Options -> Text Editor -> File Extension
End your extension 'json' and select 'Script Editor' and click 'add'.
Re-open any json documents for it to take affect.
Another option is to use Text Highlighter (extention for Visual Studio 2010), which offers syntax highlighting for the following text formats:
.json (also offer syntax validation)
.bat
.cmd
.ini
.txt
.log
Great news!
In CTP2 of Visual Studio 2013 Update 2 that was added a New JSON project item and editor
How to build CHM / HTML Documentation with Sandcastle? Can build HTML file from XML or have to used .cs and dll files?
How to build CHM / HTML Documentation with Sandcastle?
Use the Sandcastle Help File Builder.
Can build HTML file from XML or have to used .cs and dll files?
I think it uses the *.dll and the *.xml (both together) as input. One of the 'tips' in the SHFB documentation says,
"When selecting either an assembly or an XML comments file, the help file builder will automatically add the partner file for you (i.e. the XML comments file for the like-named assembly or the assembly for the like-named comments file). Multiple files can also be selected and added in one go or dragged from Windows Explorer and dropped on the Documentation Sources node."
Sandcastle uses dll to generate documentation. It also needs the xml from code comments to be build by visual studio. To do that, basically select output XML from your project build properties and then open the csproj (your VS project) in SandCastle Help file builder.