|
21 | 21 | <!-- Set recommended package metadata --> |
22 | 22 | <PackageReadmeFile>README.md</PackageReadmeFile> |
23 | 23 | <PackageId>SampleMcpServer</PackageId> |
24 | | - <PackageVersion>0.1.0-beta</PackageVersion> |
| 24 | + <PackageVersion>0.2.0-beta</PackageVersion> |
25 | 25 | <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> |
27 | 27 | </PropertyGroup> |
28 | 28 |
|
29 | 29 | <!-- Include additional files for browsing the MCP server. --> |
|
40 | 40 | <ItemGroup> |
41 | 41 | <ProjectReference Include="..\..\src\EtabSharp\EtabSharp.csproj" /> |
42 | 42 | </ItemGroup> |
| 43 | + |
| 44 | + <!-- |
| 45 | + ETABS Reference for MCP Server (Self-Contained Executable) |
43 | 46 | |
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)' != ''"> |
45 | 59 | <Reference Include="ETABSv1"> |
46 | | - <HintPath>C:\Program Files\Computers and Structures\ETABS 22\ETABSv1.dll</HintPath> |
| 60 | + <HintPath>$(EtabsPath)</HintPath> |
47 | 61 | <Private>True</Private> |
48 | 62 | <SpecificVersion>False</SpecificVersion> |
49 | 63 | </Reference> |
50 | 64 | </ItemGroup> |
51 | 65 |
|
| 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 | + |
52 | 71 | </Project> |
0 commit comments