# How to pass a dll path to msbuild?

DEMember ✭✭✭

I want to pass another path to a dll to msbuild and don't want to use the integrated HintPath in the csproj file for the same library. Therefore I use the following command:

"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild" /p:ReferencePath=C:\path\to\libfolder path/to/My.Android.csproj /p:Configuration=Release /t:PackageForAndroid /t:Build


After executing this command I get

error CS0103: The name 'xxx' does not exist in the current context

What am I missing? Attached you find my sample project with the error (you have to rename the library project so that he must take the reference).

Tagged: