File tree Expand file tree Collapse file tree 3 files changed +48
-0
lines changed
TestAssets/TestProjects/DesktopUsingPackageWithPdb
test/Microsoft.NET.Build.Tests Expand file tree Collapse file tree 3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
3
+ <PropertyGroup >
4
+ <OutputType >Exe</OutputType >
5
+ <TargetFramework >net46</TargetFramework >
6
+ </PropertyGroup >
7
+
8
+ <ItemGroup >
9
+ <PackageReference Include =" NServiceBus" Version =" 6.4.0" />
10
+ </ItemGroup >
11
+
12
+ </Project >
Original file line number Diff line number Diff line change
1
+ // Copyright (c) .NET Foundation and contributors. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ using System ;
5
+
6
+ namespace TestApp
7
+ {
8
+ class Program
9
+ {
10
+ static void Main ( )
11
+ {
12
+ Console . WriteLine ( "Hello World" ) ;
13
+ }
14
+ }
15
+ }
Original file line number Diff line number Diff line change @@ -523,5 +523,26 @@ public void It_places_package_satellites_correctly(bool crossTarget)
523
523
outputDirectory . Should ( ) . NotHaveFile ( "FluentValidation.resources.dll" ) ;
524
524
outputDirectory . Should ( ) . HaveFile ( @"fr\FluentValidation.resources.dll" ) ;
525
525
}
526
+
527
+ [ WindowsOnlyFact ]
528
+ public void It_places_package_pdb_file_correctly ( )
529
+ {
530
+ var testAsset = _testAssetsManager
531
+ . CopyTestAsset (
532
+ "DesktopUsingPackageWithPdb" )
533
+ . WithSource ( ) ;
534
+
535
+ testAsset . Restore ( Log ) ;
536
+
537
+ var buildCommand = new BuildCommand ( Log , testAsset . TestRoot ) ;
538
+ buildCommand
539
+ . Execute ( )
540
+ . Should ( )
541
+ . Pass ( ) ;
542
+
543
+ var outputDirectory = buildCommand . GetOutputDirectory ( "net46" ) ;
544
+ outputDirectory . Should ( ) . HaveFile ( "NServiceBus.Core.dll" ) ; //TODO REMOVE THIS LINE LATER
545
+ outputDirectory . Should ( ) . HaveFile ( "NServiceBus.Core.pdb" ) ;
546
+ }
526
547
}
527
548
}
You can’t perform that action at this time.
0 commit comments