dotnet / dotnet/msbuild

VCTargetsPath not set, cannot resolve Projectfile

Open
#6,013 4 comments 0 reactions 0 assignees View on GitHub
has-repro triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

Hi,
I've tried to read properties of a C++ Project to evaluate the sdk paths that are used in this project. The first issue I encountered was that the environment variable VCTargetsPath wasn't set so the .cpp.props and .cpp.targets files couldn't be resolved which resulted in an exception. I fixed this by setting the environment variable temporarily by code but doesn't seem to me like clean code so I search for a better way to do this but didn't find one so is there a better way to solve this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.