How to turn compression on/off for .qrc in Visual Studio? - visual-studio-2010

How to turn compression on/off for .qrc in Visual Studio ?
There is command line option for it.
.rcc -no-compress myresources.qrc
but how to achieve this in visual stuio ? Please Help.

I think you need to add myresources.qrc file to your VS project and configure rcc command line options as shown on the screenshot below:
For detailed information on how to configure a custom build tool you can also refer to this documentation page.

Related

Visual Studio dialog: You are renaming a script file

We keep getting the following dialog in Visual Studio when renaming files:
While I admire the effort of this option it simple doesn't work as intended and so we would like to disable this option.
My Google-fu hasn't been strong enough, does anybody know how to disable (or what extension produces) this option?
Thanks in advance!
I fixed this on my machine by going to Visual Studio -> Tools -> Options -> Projects and Solutions then uncheck the Prompt for symbolic renaming when renaming files checkbox.

Export Visual Studio's 'Code Style settings' as .editorconfig

Our team works with Visual Studio 2017 Professional.
I've been trying to unify the Code Style across the team and apparently the industry standard right now is to use .editorconfig files. Even Visual Studio in it's settings windows suggests to use that configuration file and links to a useful page on how to write an editorconfig file.
but I don't want to write all the settings that I already have configured in VS by hand. I would like a tool that exports those settings as a .editorconfig file to distribute them.
I haven't been able to find any tool to do just that so I thought on righting it myself and share it with other people like me. But apparently if go to "Tools -> Import and Export Settings..." you can't download your current Code Style settings.
Is there a way around this?
do you know any tool to convert my settings to an editorconfig file or a way to export my current Code Style settings?
Edit
I have created my own version of the .editorconfig file based on the information found in here
You can find it in my github repo
I realise this isn't much help for VS2017 users, but VS2019 has a button "Generate .editorconfig file from settings" on the Code Style options page:
This options page is available at Tools > Options > Text Editor > [C# or Basic] > Code Style > General.
I know this question is ancient but worth an answer...
The latest Visual Studio extension allows you to do this (Guide here):
Basically install the extension and right click on the solution or project (you can restrict the rules to solution/project or even folder) and click add > new EditorConfig (IntelliCode)
There are still some restrictions about what you can do in the latest releases of Visual Studio, but Visual Studio 2017 15.8 Preview 3 or higher allow you to use a new extended “Format Document” command to perform additional code cleanup for the current document.
It's a shame you can't make all your rules cause build errors, only some of the options allow this - without this, a lot of the styling options can be ignored.

Validate Map option not showing in Visual Studio

I want to validate .btm map and want to generate xslt file but as mentioned in the following article: How to Configure Map Validation and Test Parameters
The "Validate Map" option not showing by doing a right click on .btm file as seen in the Screenshot below.
Any solution?
Install Visual studio tools from your BizTalk installer
After adding this option, make sure you restart your visual studio and build your project. You should able to validate your map.

How do I reformat MSBUILD xml in Resharper or VS Studio?

Both ReSharper 6 and VS 2010 treat my MSBUILD files as XML when it has the .Proj extension, but it will not allow me to reformat the text. The options are greyed out in ReSharper and VS 2010. How do I turn it on? Right now, I am forced to either copy and paste the code into a file with an xml extension reformat and copy and paste it back, or rename the file with an xml extension.
You can write a Visual Studio macro that will do all the renaming and reformatting for you. Macros can be bound to the toolbar and to commands (keyboard shortcuts), so you can make this into a single click/shortcut.
JetBrains answer as of today (2013-12-02) is that project files are excluded from code cleanup. There's a discussion of the issue on their code cleanup page which contains a link to a bug named Verify that Code Cleanup works with MSBuild .proj files which contains the information that the fix version is only 9.0!
So there seems no way short of an external tool to get this done.

Colored build output in Visual Studio

I am using a Visual Studio project with custom build script/batch file (ala make, ant, etc.).
When the build is run from the command line we have placed colored highlighting on various output lines.
However, when built via Visual Studio (2005 in my case) the output window does not show the color anymore.
Is this possible? I am quite happy to put specific code into the build script if required.
If you don't want to go with the pro version of the VSCommands plug-in, there is a free one called VSColorOutput, which does just that. I've worked with it a bit, does what it says.
See http://coolthingoftheday.blogspot.com/2011/12/vscoloroutput-visual-studio-output.html or look it up in the extension gallery.
The VSCommands plug-in for Visual Studio 2010 adds colour formatting to the output window so errors are red. I'm not sure how they are doing it but it might give you a starting point.
The problem isn't with your build scripts, but with Visual Studio not supporting ANSI control codes to change the color.

Resources