Bot Build Error for .Net 6 framework in Visual Studio 2022
Bot Build Error for .Net 6 framework in Visual Studio 2022
17 Oct 2022, 18:35
When trying to build my CBots project for the .net 6 framework in Visual Studio 2022, all of sudden it reports CT001 error saying object reference not set to an instance of an object.
It points to the file of cTrader.Automate.targets at the line of 62, which is
<Target Name="_BundleAlgo" DependsOnTargets="ComputeFilesToPublish">
<BundleAlgoTask Name="$(AlgoName)"
Version="$(AlgoVersion)"
Description="$(Description)"
FilesToBundle="@(ResolvedFileToPublish)"
MetadataPath="$(_AlgoMetadataFilePath)"
ProjectDir="$(ProjectDir)"
TargetFramework="$(TargetFramework)"
IncludeSource="$(IncludeSource)"
IncludeSymbols="$(IncludeSymbols)"
IconPath="$(_AlgoIconPath)"
StoreSaleType="$(StoreSaleType)"
StoreAccessType="$(StoreAccessType)"
OutputPath="$(_AlgoFilePath)"/>
<Message Importance="High"
Text="$(MSBuildProjectName) -> $([System.IO.Path]::GetFullPath($(_AlgoFilePath)))"/>
</Target>
It happens even to a newly created empty CBots project. Please help solve the issue. Up to yesterday, it was working fine.
Replies
acrigney
25 Oct 2022, 15:30
RE:
This is not an issue for me but how do you select the Automate package you want to use, is this a nuget reference?
Spotware said:
Dear trader,
Thanks for reporting this issue. The team is aware of it and working on a solution. In the meanwhile, you need to downgrade the cTrader Automate package to 1.0.2.
Best regards,
cTrader Team
@acrigney
warren.dahai.hou
25 Oct 2022, 18:09
RE: RE:
acrigney said:
This is not an issue for me but how do you select the Automate package you want to use, is this a nuget reference?
Spotware said:
Dear trader,
Thanks for reporting this issue. The team is aware of it and working on a solution. In the meanwhile, you need to downgrade the cTrader Automate package to 1.0.2.
Best regards,
cTrader Team
Yes, it is a NuGet package that allows to select a version. The latest version of 1.0.4 is working fine.
@warren.dahai.hou
Spotware
18 Oct 2022, 08:02
Dear trader,
Thanks for reporting this issue. The team is aware of it and working on a solution. In the meanwhile, you need to downgrade the cTrader Automate package to 1.0.2.
Best regards,
cTrader Team
@Spotware