Visual Studio 2017 HRESULT: 0x80070005 / E_ACCESSDENIED on project creation

I had the same error. I solved it by following the procedure : Shutdown all instances of Visual Studio Delete %LocalAppData%\Microsoft\VisualStudio\15.0_f4938f75\privateregistry.bin file (the ID after 15.0_ may be different per machines) Start VS as normal user all credit for this should go to https://developercommunity.visualstudio.com/content/problem/31188/access-denied-error-1.html

Is there an alternative / plugin for Visual Studio’s configuration manager?

I have the need to remove and rename a selection of solution/project configurations in Visual Studio. Is there a tool which will help with this? Short answer: No. Long answer: Sort-of (e.g., you’re going to integrate “helper” tools which are incomplete, and write custom scripting/work to create/integrate into your configuration management process). Editorial comment: Great … Read more

How to save DLLs in a different folder when compiling in Visual Studio?

There are 2 parts of your question: How to configure solutions to build assemblies/EXE into folders of your choice – this is configured through properties of the project in VS (project properties -> build -> output path). Also value of check “copy local” property on each reference. How to load assemblies files from non-default locations … Read more

Easy way to add multiple existing .csproj to a Visual Studio Solution?

A PowerShell implementation that recursively scans the script directory for .csproj files and adds them to a (generated) All.sln: $scriptDirectory = (Get-Item $MyInvocation.MyCommand.Path).Directory.FullName $dteObj = [System.Activator]::CreateInstance([System.Type]::GetTypeFromProgId(“VisualStudio.DTE.12.0”)) $slnDir = “.\” $slnName = “All” $dteObj.Solution.Create($scriptDirectory, $slnName) (ls . -Recurse *.csproj) | % { $dteObj.Solution.AddFromFile($_.FullName, $false) } $dteObj.Solution.SaveAs( (Join-Path $scriptDirectory ‘All.sln’) ) $dteObj.Quit()

Visual Studio Solutions / Multiple project : How to effectively propagate project properties amongst several C++ projects

I think you need to investigate properties files, i.e. *.vsprops (older) or *.props (latest) You do need to add the properties file manually to each project, but once that’s done, you have multiple projects, but one .[vs]props file. If you change the properties, all projects inherit the new settings.

How to know which other projects refer to a certain project in Visual Studio?

Find All (CTRL+SHIFT+F) “Find what:” = Reference.*ReplaceThisTextWithProjectName Check “Use:” -> “Regular Expression” in the “Find options” section “Look at these file types:” = “*.*proj* ” “Look in:” = Select a directory/folder on your drive. Don’t use “Entire Solution” it won’t get to the project file itself. (Don’t forget to check “Include sub-folders”)

How to programmatically include a file in my project?

It worked for my just adding the it to the ProjectFolder, and also add the folder programmatically like this. var p = new Microsoft.Build.Evaluation.Project(@”C:\projects\BabDb\test\test.csproj”); p.AddItem(“Folder”, @”C:\projects\BabDb\test\test2″); p.AddItem(“Compile”, @”C:\projects\BabDb\test\test2\Class1.cs”); p.Save();