cosj
cosj
CC#
Created by cosj on 11/5/2023 in #help
❔ Program fails with reference when private=False but works when private=True
''' <ItemGroup> <Reference Include="Custom"> <HintPath>C:\SomeCustom.dll</HintPath>
<Private>False</Private> </Reference> </ItemGroup> ''' It builds fine with both Private True and False, but when setting it to False this error seems to suggest that it cannot find the dll. 'Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly It builds and runs fine with Private set to True. I've been looking for another way to set the path to the dll, but so far haven't been able to get it to work.
24 replies