Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Express - Simple build configuration error

I've switched to a new computer but copied all my project files to it. I am getting this error when I try to run:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(806,5): error MSB3191: Unable to create directory "C:\Users\MyUser\StarFall\StarFall_build\CMakeFiles\". Access to the path 'C:\Users\MyUser\StarFall\StarFall_build\CMakeFiles\' is denied.

The path has changed, but I don't know where I can change this setting. I realise that this may be specific to what my project settings are, but if you need more details I will post them!

like image 536
pighead10 Avatar asked Jun 05 '26 05:06

pighead10


1 Answers

Like Arun mentioned, this kind of an error happens when there is a macro in your project which is pointing to a wrong location. You shouldn't change the microsoft.cppbuild.targets file. Instead, go to your project properties and change the directory paths that are erroneous.
You can see macro expansions when you click on the dropdown arrow beside a macro, click edit and click Macros>>

like image 146
Nav Avatar answered Jun 06 '26 20:06

Nav



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!