File tree 5 files changed +20
-4
lines changed
TestAssets/TestProjects/EndToEndTestApp
5 files changed +20
-4
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 >$(CurrentTargetFramework)</TargetFramework >
6
+ <ImplicitUsings >enable</ImplicitUsings >
7
+ <Nullable >enable</Nullable >
8
+ </PropertyGroup >
9
+
10
+ <ItemGroup >
11
+ <None Update =" packfiles\pack1.txt" Pack =" true" PackagePath =" newpath/pack1.txt" />
12
+ <None Update =" packfiles\pack2.txt" Pack =" true" PackagePath =" anotherpath/pack2.txt" />
13
+ </ItemGroup >
14
+
15
+ </Project >
Original file line number Diff line number Diff line change
1
+ // See https://aka.ms/new-console-template for more information
2
+ Console . WriteLine ( "Hello, World!" ) ;
Original file line number Diff line number Diff line change @@ -80,15 +80,15 @@ public void SettingVersionSuffixFlag_ShouldStampAssemblyInfoInOutputAssemblyAndP
80
80
outputPackage . Should ( ) . Exist ( ) ;
81
81
}
82
82
83
- [ Fact ( Skip = "Test project missing" ) ]
83
+ [ Fact ]
84
84
public void HasIncludedFiles ( )
85
85
{
86
86
var testInstance = _testAssetsManager . CopyTestAsset ( "EndToEndTestApp" )
87
87
. WithSource ( ) ;
88
88
89
89
new DotnetPackCommand ( Log )
90
90
. WithWorkingDirectory ( testInstance . Path )
91
- . Execute ( )
91
+ . Execute ( "-c" , "Debug" )
92
92
. Should ( ) . Pass ( ) ;
93
93
94
94
var outputPackage = new FileInfo ( Path . Combine ( testInstance . Path ,
@@ -99,8 +99,7 @@ public void HasIncludedFiles()
99
99
100
100
ZipFile . Open ( outputPackage . FullName , ZipArchiveMode . Read )
101
101
. Entries
102
- . Should ( ) . Contain ( e => e . FullName == "packfiles/pack1.txt" )
103
- . And . Contain ( e => e . FullName == "newpath/pack2.txt" )
102
+ . Should ( ) . Contain ( e => e . FullName == "newpath/pack1.txt" )
104
103
. And . Contain ( e => e . FullName == "anotherpath/pack2.txt" ) ;
105
104
}
106
105
You can’t perform that action at this time.
0 commit comments