Tag: Visual Studio

Development

Clean Project–Cleans Visual Studio Solutions

How many times have you tried to upload or email your Visual Studio solution, only to find out that your zip file contains files and folders that you didn’t mean to include, like the bin, obj and other folders. What about source control bindings? Yes that too will get included.

Well I came across a great utility called Clean Project from Ron Jacobs that cleans your Visual Studio solutions so you can quickly upload or email.

This functionality is available inside Visual Studio and also from the Windows Shell.

Getting Started

You can install CleanProject from Tools –> Extensions Manager in Visual Studio. Then search for CleanProject. In the References section below I listed links to other locations you can download the project from.

sshot-278

Emailing A Solution

If you want to email your solution:

  1. Select Tools –> Clean, Remove Source Bindings and Zip Solution
  2. Attach the zip file to your email and send

CleanProjVS

Windows Shell Folder Command

You can also run CleanProject from the Windows Shell. Just right click the folder you want to clean and select Clean, Remove Source Binding and Zip Solution from the context menu.

sshot-279

Resources

 

Thanks Ron Jacobs for your hard work on this utility. I look forward to further enhancements and/or other tools in the future.

Development

Visual Studio 11 Gets a Dark Theme

I came across an interesting article on the Visual Studio blog, which shows a dark theme coming to Visual Studio 11…cool!

dark_theme3_RTM_planned

Along with this dark theme, we will also see other improvements to the IDE such as:

  • Themed Icons (which they will provide to us for use in our applications)
  • Themed Scrollbars (finally)
  • Dark Editor Theme
  • Common Dialogs (will get the dark theme too)

Here is a screenshot that brings it all together, showing a dark themed Visual Studio 11 with the Windows 8 simulator running in the foreground.putting it all together

You can read more about this on the Visual Studio blog.

Cheers

Development

ResXFileCodeGeneratorEx Update for VS2010

If you were using this tool in Visual Studio 2008 and then upgraded your solution to Visual Studio 2010, you might have noticed that this functionality no longer worked. You also might have received an error, which you dismissed.

ResXFileCodeGeneratorEx is an awesome tool and I’m surprised it still hasn’t been officially updated to support Visual Studio 2010.

Well after doing some digging around, I found an article with a work around that enables this functionality in Visual Studio 2010. Here are the instructions to get it working on your machine, followed by an example:

  1. Shut down Visual Studio 2010.
  2. If you don’t already have the tool ResXFileCodeGeneratorEx downloaded and installed, please do so. You can get the latest installer from http://dmytro.kryvko.googlepages.com/
  3. Save the attached file in this email and remove the .temp extension.
  4. Double click the attached file that you renamed and have it add its contents to your Registry.
  5. Restart Visual Studio 2010.

Here is a working example of how to use the tool. Say you want to add a new entry to the PageText.resx resource file contained in your solution and the entry was “Abandoned”:

  1. Open up PageText.resx by double clicking the file.
  2. Add “Abandoned” in the name and “Abandoned” in the value.
    clip_image002
  3. Click Save.
  4. Next right click on PageText.rex and click on Run Custom Tool as shown below…
    clip_image002[8]
  5. Now you can reference this value from your code by typing in PageText.
    clip_image002[10]

Hope that helps.