Skip to content

Commit 14d5fef

Browse files
committed
Fix README.md packaging path to support multiple locations
1 parent 4feff0b commit 14d5fef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/NLWebNet/NLWebNet.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
<Copyright>Copyright (c) Jon Galloway 2025</Copyright>
1313
<Description>A .NET library implementing the NLWeb protocol for natural language web interfaces. Provides minimal API endpoints, Model Context Protocol (MCP) integration, and streaming support for building conversational AI applications.</Description>
1414
<PackageProjectUrl>https://github.com/jongalloway/NLWebNet</PackageProjectUrl> <RepositoryUrl>https://github.com/jongalloway/NLWebNet</RepositoryUrl>
15-
<RepositoryType>git</RepositoryType>
16-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
17-
<PackageReadmeFile>README.md</PackageReadmeFile>
15+
<RepositoryType>git</RepositoryType> <PackageLicenseExpression>MIT</PackageLicenseExpression>
16+
<PackageReadmeFile Condition="Exists('$(MSBuildThisFileDirectory)..\..\README.md') Or Exists('$(MSBuildThisFileDirectory)README.md')">README.md</PackageReadmeFile>
1817
<PackageTags>nlweb;ai;conversation;minimal-api;mcp;streaming;rag;search;llm;dotnet9;alpha;prerelease</PackageTags>
1918
<PackageReleaseNotes>Alpha release 0.1.0-alpha.3: Enhanced NuGet package metadata with copyright notice, repository type, and improved package title for better Package Manager display. Complete NLWeb protocol implementation with Minimal API endpoints (/ask, /mcp), Model Context Protocol integration, streaming support, and comprehensive testing. This is a proof-of-concept prerelease for testing and evaluation purposes only - not recommended for production use.</PackageReleaseNotes>
2019
<!-- Symbol and Deterministic Build Configuration -->
@@ -63,8 +62,8 @@
6362
<ItemGroup>
6463
<FrameworkReference Include="Microsoft.AspNetCore.App" />
6564
</ItemGroup> <ItemGroup>
66-
<None Include="..\..\README.md" Pack="true" PackagePath="\" Condition="Exists('..\..\README.md')" />
67-
<None Include="README.md" Pack="true" PackagePath="\" Condition="Exists('README.md') And !Exists('..\..\README.md')" />
65+
<None Include="$(MSBuildThisFileDirectory)..\..\README.md" Pack="true" PackagePath="\" Condition="Exists('$(MSBuildThisFileDirectory)..\..\README.md')" />
66+
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" Condition="Exists('$(MSBuildThisFileDirectory)README.md') And !Exists('$(MSBuildThisFileDirectory)..\..\README.md')" />
6867
</ItemGroup>
6968

7069
</Project>

0 commit comments

Comments
 (0)