Repository navigation
Add test for satellite assembly generation. - #146
Conversation
| cultureDir.Should().HaveFile("TestApp.resources.dll"); | ||
| } | ||
|
|
||
| commandResult.Should().HaveStdOutContaining(val); |
There was a problem hiding this comment.
Since both the "TestApp" resources and the "TestLibrary" resources have the same strings, we aren't really doing great verification here.
Can we have the resources in the TestApp be different than what is in the TestLibrary?
b32443d to
bbb366f
Compare
|
@eerhardt Added a test for publish scenario. |
| { | ||
| var cultureDir = new DirectoryInfo(Path.Combine(publishDirectory.FullName, culture)); | ||
| cultureDir.Should().Exist(); | ||
| cultureDir.Should().HaveFile("TestApp.resources.dll"); |
There was a problem hiding this comment.
There should also be a TestLibrary.resources.dll. Can you add a check for that?
There was a problem hiding this comment.
Adding this test helped me find an issue on Unix. Here is the fix for it in msbuild - dotnet/msbuild#1057
Thanks @eerhardt
| "CopyToOutputFromProjectReference.txt", | ||
| }); | ||
|
|
||
| var cultures = new List<string>() { "da", "de", "fr" }; |
There was a problem hiding this comment.
I think we should put that in a separate test. Otherwise this test will hold everything in it. Seems like bad practice.
There was a problem hiding this comment.
The existing publish test already covers a number of scenarios, I want to leverage that for satellite assemblies too. I did not want to create another test which runs the publish commands on the same project. That will increase a our test times.
b11f513 to
bf9bd45
Compare
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
| </EmbeddedResource> | ||
|
|
||
| <EmbeddedResource Include="**\*.resx" Exclude="Resource1.resx"/> |
There was a problem hiding this comment.
Directly above this we have Include="Resource1.resx". Do we need both?
|
@Sridhar-MS Is the xplat issue with satellites still being investigated? Is there a bug tracking it? |
|
@dotnet-bot test this please |
ac2df18 to
ec8b01b
Compare
Reuse the 'KitchenSink' test asset to verify satellite assembly generation.
ec8b01b to
69af5a7
Compare
|
@dotnet-bot test Windows_NT Release please |
1 similar comment
|
@dotnet-bot test Windows_NT Release please |
|
@mmitche There is a file in this Jenkins VM which is not getting deleted when cleaning up the workspace. Any idea? |
|
I am going to merge since the build passed on Windows_NT debug. |
|
@Sridhar-MS Looking into it. Should be stuff allowed to stick around |
Add test for satellite assembly generation.
Reuse the 'KitchenSink' test asset to verify satelliet assembly generation.
cc @eerhardt @livarcocc