Visual Studio always selects the wrong xsd for App.config

I interpret the problem as follows: the file DotNetConfig.xsd has wrong (or not full) definition of the <startup> element. Line 230 of all DotNetConfig.xsd, DotNetConfig35.xsd, DotNetConfig30.xsd and DotNetConfig20.xsd files contains <xs:element name=”startup” vs:help=”configuration/startup” /> On the other side Microsoft describes the startup settings schema as a non-empty element. So I suggest to replace the above … Read more

Mercurial .hgignore for Visual Studio 2010 projects

The new things are related to MSTest stuff. This is the one that I use: # use glob syntax syntax: glob *.obj *.pdb *.user *.aps *.pch *.vspscc *.vssscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.[Cc]ache *.ilk *.log *.lib *.sbr *.scc *.DotSettings [Bb]in [Dd]ebug*/** obj/ [Rr]elease*/** _ReSharper*/** NDependOut/** packages/** [Tt]humbs.db [Tt]est[Rr]esult* [Bb]uild[Ll]og.* *.[Pp]ublish.xml *.resharper *.ncrunch* … Read more

How do I configure MSBuild to use a saved publishProfile for WebDeploy?

I’m sorry to tell you that the publish.xml file which VS2010 uses was not designed to be used in this way. In fact it was not even designed to be checked-in/shared with others. The logic for reading/writing those files are strictly contained inside Visual Studio and not available through MSBuild. So there is no straight … Read more

how to run iisexpress app pool under a different identity

It looks like this should be possible. In your IIS Express site’s applicationhost.config file, there is a <processModel/> element defined in <applicationPoolDefaults> under <applicationPools> The <processModel> element has attributes for userName and password. From MSDN: Specifies that ASP.NET will run the worker process with a Windows identity that is different from the Windows identity for … Read more

Visual Studio does not let me drag drop items into it?

On Windows Vista and newer Windows Explorer runs with medium integrity level. If you run Visual Studio as administrator (high integrity level) then for security reasons OS will disable drag and drop from Explorer to Visual Studio. You can either run Visual Studio as normal user or you can install VSCommands for Visual Studio 2012 … Read more