aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--templates/vsprojects/vcxproj_defs.include2
-rw-r--r--vsprojects/.gitignore1
2 files changed, 3 insertions, 0 deletions
diff --git a/templates/vsprojects/vcxproj_defs.include b/templates/vsprojects/vcxproj_defs.include
index 23fe2e0180..0ddf68a11a 100644
--- a/templates/vsprojects/vcxproj_defs.include
+++ b/templates/vsprojects/vcxproj_defs.include
@@ -78,6 +78,8 @@ ${gen_package_props(packages, repo_root)}\
<ProjectGuid>${project_guid if project_guid else project.vs_project_guid}</ProjectGuid>
## Silence MSB8029 warning. See #4506
<IgnoreWarnIntDirInTempDetected>true</IgnoreWarnIntDirInTempDetected>
+## Use different location for intermediate directory to make path shorter than 260 characters.
+ <IntDir>$(SolutionDir)IntDir\$(MSBuildProjectName)\</IntDir>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(VisualStudioVersion)' == '10.0'" Label="Configuration">
diff --git a/vsprojects/.gitignore b/vsprojects/.gitignore
index c1eef4df7a..8df1dcf0bf 100644
--- a/vsprojects/.gitignore
+++ b/vsprojects/.gitignore
@@ -9,3 +9,4 @@ test_bin
*.sdf
third_party/*.user
/packages
+/IntDir