Angyang.Cao Posted April 12, 2025 Posted April 12, 2025 I'm using JetBrain Rider to open the CSharp Compnent Sample Project and it occurs when i rebuild solution.
Angyang.Cao Posted April 12, 2025 Author Posted April 12, 2025 <Target Name="PostBuild" AfterTargets="PostBuildEvent"> <Exec Command=""$(DOTNET_HOST_PATH)" "$(OutputPath)cspropgen_x64d.dll" -p "$(OutputPath)$(AssemblyName).dll" -data_path ../data/" Condition="'$(Configuration)'=='Debug' And $(SkipPostBuild)=='false'"/> <Exec Command=""$(DOTNET_HOST_PATH)" "$(OutputPath)cspropgen_x64.dll" -p "$(OutputPath)$(AssemblyName).dll" -data_path ../data/" Condition="'$(Configuration)'=='Release' And $(SkipPostBuild)=='false'"/> <Exec Command=""$(DOTNET_HOST_PATH)" "$(OutputPath)cspropgen_double_x64d.dll" -p "$(OutputPath)$(AssemblyName).dll" -data_path ../data/" Condition="'$(Configuration)'=='Debug-Double' And $(SkipPostBuild)=='false'"/> <Exec Command=""$(DOTNET_HOST_PATH)" "$(OutputPath)cspropgen_double_x64.dll" -p "$(OutputPath)$(AssemblyName).dll" -data_path ../data/" Condition="'$(Configuration)'=='Release-Double' And $(SkipPostBuild)=='false'"/> </Target> it seems happen due to uncorrect project configuration? I don't know how to configure it in Rider.
arizmenda Posted April 14, 2025 Posted April 14, 2025 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. Thanks! csharp_component_samples.sln
Angyang.Cao Posted April 14, 2025 Author Posted April 14, 2025 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. 2
Recommended Posts