Jump to content

warning MSB3245: Could not resolve this reference. Could not locate the assembly "UnigineSharp_x64d.dll".


photo

Recommended Posts

Posted

I'm using JetBrain Rider to open the CSharp Compnent Sample Project and it occurs when i rebuild solution.image.thumb.png.e910c537d5e1b0541d07849a34ea816b.png

Posted


    <Target Name="PostBuild" AfterTargets="PostBuildEvent">
        <Exec Command="&quot;$(DOTNET_HOST_PATH)&quot; &quot;$(OutputPath)cspropgen_x64d.dll&quot; -p &quot;$(OutputPath)$(AssemblyName).dll&quot; -data_path ../data/" Condition="&apos;$(Configuration)&apos;==&apos;Debug&apos; And $(SkipPostBuild)==&apos;false&apos;"/>
        <Exec Command="&quot;$(DOTNET_HOST_PATH)&quot; &quot;$(OutputPath)cspropgen_x64.dll&quot; -p &quot;$(OutputPath)$(AssemblyName).dll&quot; -data_path ../data/" Condition="&apos;$(Configuration)&apos;==&apos;Release&apos; And $(SkipPostBuild)==&apos;false&apos;"/>
        <Exec Command="&quot;$(DOTNET_HOST_PATH)&quot; &quot;$(OutputPath)cspropgen_double_x64d.dll&quot; -p &quot;$(OutputPath)$(AssemblyName).dll&quot; -data_path ../data/" Condition="&apos;$(Configuration)&apos;==&apos;Debug-Double&apos; And $(SkipPostBuild)==&apos;false&apos;"/>
        <Exec Command="&quot;$(DOTNET_HOST_PATH)&quot; &quot;$(OutputPath)cspropgen_double_x64.dll&quot; -p &quot;$(OutputPath)$(AssemblyName).dll&quot; -data_path ../data/" Condition="&apos;$(Configuration)&apos;==&apos;Release-Double&apos; And $(SkipPostBuild)==&apos;false&apos;"/>
    </Target>

it seems happen due to uncorrect project configuration? I don't know how to configure it in Rider.

Posted

Hi!

Indeed, Rider cannot grab configuration data from .csproj file. 

You'll find a .sln file attached. Please add it to your project folder, next to the .csproj file, and open it in Rider.
After that, a list of configurations will appear - building the project in the Debug-Double configuration should run without errors.

image.png

Thanks!

csharp_component_samples.sln

Posted

Thanks, I already fixed the problem by create a new .sln project in Rider and load the target project, and you saying're helpful to me.

  • Like 2
×
×
  • Create New...