Skip to content

Commit c900804

Browse files
authored
Ensure DCP path is valid (#14415)
1 parent 6e4f142 commit c900804

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<BuildArch Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X86' ">386</BuildArch>
5252
<BuildArch Condition=" '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'Arm64' ">arm64</BuildArch>
5353
<BuildArch Condition=" '$(BuildArch)' == '' ">amd64</BuildArch>
54-
<DcpDir>$(NuGetPackageRoot)microsoft.developercontrolplane.$(BuildOs)-$(BuildArch)/$(MicrosoftDeveloperControlPlanedarwinamd64Version)/tools/</DcpDir>
54+
<DcpDir>$([MSBuild]::EnsureTrailingSlash('$(NuGetPackageRoot)'))microsoft.developercontrolplane.$(BuildOs)-$(BuildArch)/$(MicrosoftDeveloperControlPlanedarwinamd64Version)/tools/</DcpDir>
5555

5656
<!-- TODO: Need to figure out we can automatically detect target framework here. This property
5757
is specified to support dashboard path metadata generation on the inner loop. -->

src/Aspire.Cli/Projects/DotNetBasedAppHostServerProject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private XDocument CreateProjectFile(IEnumerable<(string Name, string Version)> p
166166
<SkipAddAspireDefaultReferences>true</SkipAddAspireDefaultReferences>
167167
<AspireHostingSDKVersion>42.42.42</AspireHostingSDKVersion>
168168
<!-- DCP and Dashboard paths for local development -->
169-
<DcpDir>$(NuGetPackageRoot){dcpPackageName}/{dcpVersion}/tools/</DcpDir>
169+
<DcpDir>$([MSBuild]::EnsureTrailingSlash('$(NuGetPackageRoot)')){dcpPackageName}/{dcpVersion}/tools/</DcpDir>
170170
<AspireDashboardDir>{_repoRoot}artifacts/bin/Aspire.Dashboard/Debug/net8.0/</AspireDashboardDir>
171171
</PropertyGroup>
172172
<ItemGroup>

0 commit comments

Comments
 (0)