...
5. Some manual edits must be made to the project file in order for the plugin to run successfully. Open the project file (in our example, CSiNET8PluginExample1.csproj ) in a text editor, and make the highlighted changes shown below
| Code Block |
|---|
| <Project Sdk="Microsoft.NET.Sdk">
|
|
|---|
0<0-windows</TargetFramework> |
|
|---|
<ImplicitUsings>enable</ImplicitUsings>
|
|
|---|
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x64</Platforms>
<EnableDynamicLoading>true</EnableDynamicLoading>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<ItemGroup>
|
|
|---|
<ItemGroup> <Reference Include="CSiAPIv1">
<HintPath>..\..\..\..\.. |
|
|---|
\Program Files\Computers and Structures\ETABS 22\API\CSI.API\bin\Debug\CSiAPIv1.dll</HintPath>
<Private>false</Private>
<ExcludeAssets>runtime</ExcludeAssets>
</Reference>
|
|
|---|
|
| Code Block |
|---|
| <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework> |
|
|---|
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x64</Platforms>
<EnableDynamicLoading>true</EnableDynamicLoading>
|
|
|---|
<Platforms>AnyCPU;x64<Platforms>UseWindowsForms>
</PropertyGroup>
<ItemGroup>
<Reference Include="CSiAPIv1">
<HintPath>..\..\..\..\.. |
|
|---|
\Program Files\Computers and Structures\ETABS 22\API\CSI.API\bin\Debug\CSiAPIv1.dll</HintPath>
<Private>false</Private>
<ExcludeAssets>runtime</ExcludeAssets>
</Reference>
</ItemGroup>
</Project> |
|
|---|
| Code Block |
|---|
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnableDynamicLoading>true</EnableDynamicLoading>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<ItemGroup>
<Reference Include="CSiAPIv1">
<HintPath>..\..\..\..\..\API\CSI.API\bin\Debug\CSiAPIv1.dll</HintPath>
<Private>false</Private>
<ExcludeAssets>runtime</ExcludeAssets>
</Reference>
</ItemGroup>
</Project> |
...