Skip to content

Commit

Permalink
re verify
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed May 25, 2023
1 parent fb50bdd commit eaf06c0
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 23 deletions.
12 changes: 6 additions & 6 deletions src/Cymbal/CymbalTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ void InnerExecute()
}

var fullPublishPath = Path.GetFullPath(PublishDirectory);
var inputs = $@"
PublishDir: {fullPublishPath}
CymbalCacheDirectory environment variable: {environmentCacheDirectory}
CymbalCacheDirectory MsBuild property: {CacheDirectory}
Resolved CacheDirectory: {cacheDirectory}
";
var inputs = $"""
PublishDir: {fullPublishPath}
CymbalCacheDirectory environment variable: {environmentCacheDirectory}
CymbalCacheDirectory MsBuild property: {CacheDirectory}
Resolved CacheDirectory: {cacheDirectory}
""";
Log.LogMessageFromText(inputs, MessageImportance.High);

var (hasPdb, isEmbedded, toDownload) = GetFiles(fullPublishPath);
Expand Down
16 changes: 10 additions & 6 deletions src/Cymbal/Dotnet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ public static List<string> Execute(string command, string arguments)

if (!process.DoubleWaitForExit())
{
var timeoutError = $@"Process timed out. {commandLineMessage}.
Output: {string.Join(Environment.NewLine, output)}
Error: {errorBuilder}";
var timeoutError = $"""
Process timed out. {commandLineMessage}.
Output: {string.Join(Environment.NewLine, output)}
Error: {errorBuilder}
""";
throw new Error(timeoutError);
}

Expand All @@ -64,9 +66,11 @@ dotnet tool install dotnet-symbol
throw new Error(message);
}

var error = $@"Could not execute process. {commandLineMessage}.
Output: {string.Join(Environment.NewLine, output)}
Error: {errors}";
var error = $"""
Could not execute process. {commandLineMessage}.
Output: {string.Join(Environment.NewLine, output)}
Error: {errors}
""";
throw new Error(error);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
Publish:
SampleApp -> {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalTarget:

PublishDir: {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalCacheDirectory environment variable:
CymbalCacheDirectory MsBuild property:
Resolved CacheDirectory:

Skipped assemblies with existing pdbs:
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/AssemblyWithPdb.dll
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/Microsoft.Data.SqlClient.dll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
Publish:
SampleApp -> {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalTarget:

PublishDir: {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalCacheDirectory environment variable:
CymbalCacheDirectory MsBuild property: {SolutionDirectory}Cache
Resolved CacheDirectory: {SolutionDirectory}Cache

Skipped assemblies with existing pdbs:
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/AssemblyWithPdb.dll
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/Microsoft.Data.SqlClient.dll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
Publish:
SampleApp -> {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalTarget:

PublishDir: {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalCacheDirectory environment variable: {SolutionDirectory}Cache
CymbalCacheDirectory MsBuild property: {SolutionDirectory}Cache
Resolved CacheDirectory: {SolutionDirectory}Cache

Skipped assemblies with existing pdbs:
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/AssemblyWithPdb.dll
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/Microsoft.Data.SqlClient.dll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
Publish:
SampleApp -> {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalTarget:

PublishDir: {SolutionDirectory}SampleApp/bin/IncludeTask/publish/
CymbalCacheDirectory environment variable: {SolutionDirectory}Cache
CymbalCacheDirectory MsBuild property: {SolutionDirectory}Cache
Resolved CacheDirectory: {SolutionDirectory}Cache

Skipped assemblies with existing pdbs:
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/AssemblyWithPdb.dll
{SolutionDirectory}SampleApp/bin/IncludeTask/publish/Microsoft.Data.SqlClient.dll
Expand Down
6 changes: 3 additions & 3 deletions src/Tests/Tests.Should_Parse_SymbolServer.verified.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
buildOutput:
1>Project "{SolutionDirectory}SampleWithSymbolServer/SampleWithSymbolServer.csproj" on node 1 (Publish target(s)).
1>PrepareForPublish:
1>IncludeSymbolFromReferences:
{SolutionDirectory}Cymbal/build/Cymbal.targets(26,14): message : MSB4120: Item 'ReferenceCopyLocalPaths' definition within target references itself via (qualified or unqualified) metadatum 'DestinationSubDirectory'. This can lead to unintended expansion and cross-applying of pre-existing items. More info: https://aka.ms/msbuild/metadata-self-ref [{SolutionDirectory}SampleWithSymbolServer/SampleWithSymbolServer.csproj]
PrepareForPublish:
_CopyResolvedFilesToPublishPreserveNewest:
_CopyResolvedFilesToPublishAlways:
Publish:
SampleWithSymbolServer -> {SolutionDirectory}SampleWithSymbolServer/bin/IncludeTask/publish/
CymbalTarget:

PublishDir: {SolutionDirectory}SampleWithSymbolServer/bin/IncludeTask/publish/
CymbalCacheDirectory environment variable:
CymbalCacheDirectory MsBuild property:
Resolved CacheDirectory:

Skipped assemblies with existing pdbs:
{SolutionDirectory}SampleWithSymbolServer/bin/IncludeTask/publish/SampleWithSymbolServer.dll
Assemblies to process:
Expand Down

0 comments on commit eaf06c0

Please sign in to comment.