Skip to content

Commit d7d8c2a

Browse files
committed
.
1 parent abc2379 commit d7d8c2a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageVersion Include="Microsoft.Build.Tasks.Core" Version="18.0.2" />
1010
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
1111
<PackageVersion Include="Microsoft.Sbom.Targets" Version="4.1.5" />
12-
<PackageVersion Include="PackageShader.MsBuild" Version="0.1.10" />
12+
<PackageVersion Include="PackageShader.MsBuild" Version="0.1.11" />
1313
<PackageVersion Include="Polyfill" Version="9.7.5" />
1414
<PackageVersion Include="ProjectDefaults" Version="1.0.170" />
1515
<PackageVersion Include="ProjectFiles" Version="0.4.0" />

src/MarkdownSnippets.MsBuild/MarkdownSnippets.MsBuild.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<PropertyGroup>
1111
<!-- PackageShader configuration -->
12-
<Shader_Internalize>true</Shader_Internalize>
12+
<Shader_Internalize>false</Shader_Internalize>
1313
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1414

1515
<!-- Strong name signing -->

src/Tests/MsBuildIntegrationTests.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Diagnostics;
2-
31
// Integration tests for MSBuild task
42
#if RELEASE
53
public class MsBuildIntegrationTests
@@ -43,7 +41,7 @@ public async Task MsBuild_UsesNetFrameworkTask()
4341
using var tempDir = new TempDirectory();
4442
await SetupTestProject(tempDir);
4543

46-
var result = await RunProcess(msbuildPath, $"\"{tempDir.Path}\" /p:Configuration=Release /restore", tempDir);
44+
var result = await RunProcess(msbuildPath, $"\"{tempDir.Path}\" /p:Configuration=Release /restore -verbosity:minimal", tempDir);
4745

4846
Assert.True(result.ExitCode == 0, $"msbuild failed:\n{result.Output}\n{result.Error}");
4947

@@ -60,9 +58,14 @@ static async Task SetupTestProject(string tempDir)
6058
var nugetVersion = GetLatestNugetVersion();
6159

6260
// Create nuget.config pointing to local nugets folder
61+
// Use a local packages folder to avoid global cache issues when testing local package changes
62+
var localPackagesFolder = Path.Combine(tempDir, "packages");
6363
var nugetConfig = $"""
6464
<?xml version="1.0" encoding="utf-8"?>
6565
<configuration>
66+
<config>
67+
<add key="globalPackagesFolder" value="{localPackagesFolder}" />
68+
</config>
6669
<packageSources>
6770
<clear />
6871
<add key="local" value="{GetNugetsDir()}" />

0 commit comments

Comments
 (0)