Skip to content

Commit 8e6143d

Browse files
committed
update reference for preparing publishing package
1 parent 9bd1ece commit 8e6143d

1 file changed

Lines changed: 23 additions & 4 deletions

File tree

mcp/EtabSharp.Mcp/EtabSharp.Mcp.csproj

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<!-- Set recommended package metadata -->
2222
<PackageReadmeFile>README.md</PackageReadmeFile>
2323
<PackageId>SampleMcpServer</PackageId>
24-
<PackageVersion>0.1.0-beta</PackageVersion>
24+
<PackageVersion>0.2.0-beta</PackageVersion>
2525
<PackageTags>AI; MCP; server; stdio</PackageTags>
26-
<Description>An MCP server using the MCP C# SDK.</Description>
26+
<Description>An MCP server for Etabs using EtabSharp.</Description>
2727
</PropertyGroup>
2828

2929
<!-- Include additional files for browsing the MCP server. -->
@@ -40,13 +40,32 @@
4040
<ItemGroup>
4141
<ProjectReference Include="..\..\src\EtabSharp\EtabSharp.csproj" />
4242
</ItemGroup>
43+
44+
<!--
45+
ETABS Reference for MCP Server (Self-Contained Executable)
4346
44-
<ItemGroup>
47+
Since this is a self-contained, single-file executable, we need ETABSv1.dll
48+
to be included in the publish output. We use Private=True here.
49+
50+
Note: For self-contained apps, we still manually reference because the
51+
.targets file won't apply to the published single-file output.
52+
-->
53+
<PropertyGroup>
54+
<EtabsPath Condition="Exists('C:\Program Files\Computers and Structures\ETABS 22\ETABSv1.dll')">C:\Program Files\Computers and Structures\ETABS 22\ETABSv1.dll</EtabsPath>
55+
<EtabsPath Condition="'$(EtabsPath)' == '' AND Exists('C:\Program Files (x86)\Computers and Structures\ETABS 22\ETABSv1.dll')">C:\Program Files (x86)\Computers and Structures\ETABS 22\ETABSv1.dll</EtabsPath>
56+
</PropertyGroup>
57+
58+
<ItemGroup Condition="'$(EtabsPath)' != ''">
4559
<Reference Include="ETABSv1">
46-
<HintPath>C:\Program Files\Computers and Structures\ETABS 22\ETABSv1.dll</HintPath>
60+
<HintPath>$(EtabsPath)</HintPath>
4761
<Private>True</Private>
4862
<SpecificVersion>False</SpecificVersion>
4963
</Reference>
5064
</ItemGroup>
5165

66+
<Target Name="ShowEtabsPathMcp" BeforeTargets="Build">
67+
<Message Text="[EtabSharp.Mcp] ETABS path: $(EtabsPath)" Importance="high" Condition="'$(EtabsPath)' != ''" />
68+
<Warning Text="[EtabSharp.Mcp] ETABS not found - build will fail" Condition="'$(EtabsPath)' == ''" />
69+
</Target>
70+
5271
</Project>

0 commit comments

Comments
 (0)