DotNetClassic Examples ".props" File not Configured Properly

#1
For those trying to compile or use any of the Dot Net Examples who get a warning like this:
Error You are building .NET samples from the 'api-*.zip' archive, but IntelliCAD install location has not been found. You need to install IntelliCAD (.msi) or repair it.
This is because the file "IntelliCAD.DotNetClassic.Samples.props" was cut and pasted from another Intellicad (ITC) brand. There is one property section that needs to be changed to reflect the correct registry entry in order for Visual Studio to understand where CMS Intellicad is installed. Here is the modified section:

Code: Select all

 
 <PropertyGroup Condition="'$(IsApiBuild)'=='true'">
    <IcadVersion>11.1</IcadVersion>
    <IcadBuildDir>$(MSBuildThisFileDirectory)Build\VC.$(PlatformToolset)</IcadBuildDir>
    <IcadStageDir>$(IcadBuildDir)\$(Configuration) $(TargetArchSuffix)</IcadStageDir>
    <IcadOutDir>$(IcadStageDir)</IcadOutDir>
    <IcadIntDir>$(IcadOutDir)\Int\$(MSBuildProjectName).dir</IcadIntDir>
    <RegInstallDir Condition="$(Configuration.Contains('Pro')) And $(Platform.Contains('64'))">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\CMS\CMS IntelliCAD $(IcadVersion) Premium Edition Plus x64\$(IcadVersion)', 'InstallDir', null, RegistryView.Registry64))</RegInstallDir>
    <RegInstallDir Condition="$(Configuration.Contains('Pro')) And !$(Platform.Contains('64'))">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\CMS\CMS IntelliCAD $(IcadVersion) Premium Edition Plus x86\$(IcadVersion)', 'InstallDir', null, RegistryView.Registry32))</RegInstallDir>
    <RegInstallDir Condition="!$(Configuration.Contains('Pro')) And $(Platform.Contains('64'))">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\CMS\CMS IntelliCAD $(IcadVersion) Premium Edition x64\$(IcadVersion)', 'InstallDir', null, RegistryView.Registry64))</RegInstallDir>
    <RegInstallDir Condition="!$(Configuration.Contains('Pro')) And !$(Platform.Contains('64'))">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\SOFTWARE\CMS\CMS IntelliCAD $(IcadVersion) Premium Edition x86\$(IcadVersion)', 'InstallDir', null, RegistryView.Registry32))</RegInstallDir>
    <IcadBinPath>$(RegInstallDir)</IcadBinPath>
  </PropertyGroup>