70002192 How to upgrade a VectoDraw project to NET6

Article 70002192
Type HowTo
Product Engine
Version 9
Date Added 4/6/2022 12:00:00 AM
Fixed 10.1001.0.1 (4/6/2022 12:00:00 AM)
Submitted by VectorDraw Team

Summary

How to upgrade a VectoDraw project to .NET6

Solution

*** This applies to VDF version 10.1001 and later ***
First of all you have to use the migration tool in order to upgrade your project/solution to .NET6 like: https://docs.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-winforms-framework

After you have successfully upgraded your project/solution, open it with Microsoft Visual Studio 2022, right click on the project -> Properties and make sure that the project has Target Framework: .NET 6.0.



Then right click again on the project and select Edit Project File from the drop down menu. Find the ItemGroup which contains the paths of the VectorDraw Libraries which will be like the image bellow:



and replace it with the new VDRAWDEV like the image bellow:



After you have done all the previous steps save and build your project.

You will find the new ItemGroup bellow in order to copy and paste it in to your project.

	<ItemGroup>
		<Reference Include="OpenVDF">
			<HintPath>$(VDRAWDEV)OpenVDF.dll</HintPath>
		</Reference>
		<Reference Include="RenderFormats">
			<HintPath>$(VDRAWDEV)RenderFormats.dll</HintPath>
		</Reference>
		<Reference Include="vdCommandLine">
			<HintPath>$(VDRAWDEV)vdCommandLine.dll</HintPath>
		</Reference>
		<Reference Include="vdDXF">
			<HintPath>$(VDRAWDEV)vdDXF.dll</HintPath>
		</Reference>
		<Reference Include="vdFramedControl">
			<HintPath>$(VDRAWDEV)vdFramedControl.dll</HintPath>
		</Reference>
		<Reference Include="vdgrAPI">
			<HintPath>$(VDRAWDEV)vdgrAPI.dll</HintPath>
		</Reference>
		<Reference Include="vdIFC">
			<HintPath>$(VDRAWDEV)vdIFC.dll</HintPath>
		</Reference>
		<Reference Include="vdPropertyGrid">
			<HintPath>$(VDRAWDEV)vdPropertyGrid.dll</HintPath>
		</Reference>
		<Reference Include="VDrawBaseControl">
			<HintPath>$(VDRAWDEV)VDrawBaseControl.dll</HintPath>
		</Reference>
		<Reference Include="vdRay">
			<HintPath>$(VDRAWDEV)vdRay.dll</HintPath>
		</Reference>
		<Reference Include="vdScrollableControl">
			<HintPath>$(VDRAWDEV)\vdScrollableControl.dll</HintPath>
		</Reference>
		<Reference Include="vdxFcnv">
			<HintPath>$(VDRAWDEV)vdxFcnv.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.Actions">
			<HintPath>$(VDRAWDEV)VectorDraw.Actions.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.Advanced">
			<HintPath>$(VDRAWDEV)VectorDraw.Advanced.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.Generics">
			<HintPath>$(VDRAWDEV)VectorDraw.Generics.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.Geometry">
			<HintPath>$(VDRAWDEV)VectorDraw.Geometry.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.Professional">
			<HintPath>$(VDRAWDEV)VectorDraw.Professional.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.Render">
			<HintPath>$(VDRAWDEV)VectorDraw.Render.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.Serialize">
			<HintPath>$(VDRAWDEV)VectorDraw.Serialize.dll</HintPath>
		</Reference>
		<Reference Include="VectorDraw.SolidModel">
			<HintPath>$(VDRAWDEV)VectorDraw.SolidModel.dll</HintPath>
		</Reference>
	</ItemGroup>

Send comments on this topic.