public void CanGetProjectAssemblies_For_VS2017CSProjFile_DefaultPlatform() { var projectString = ProjectFileHelpers.GetNetCoreProjectWithString( "<PropertyGroup><OutputType>Exe</OutputType><TargetFrameworks>netstandard2.0;net45</TargetFrameworks></PropertyGroup>"); var file = new FakeFile(projectString, "./klm.csproj"); fs.AddFile(file); var result = cakeContext.GetProjectAssemblies(file.Path, "Release"); result.Should().HaveCount(2).And.BeEquivalentTo(new FilePath("bin/Release/netstandard2.0/klm.exe"), new FilePath("bin/Release/net45/klm.exe")); }
public void CanGetProjectAssemblies_For_VS2017CSProjFile_DefaultPlatform() { var projectString = ProjectFileHelpers.GetNetCoreProjectWithString( "<PropertyGroup><OutputType>Exe</OutputType><TargetFrameworks>netstandard2.0;net45</TargetFrameworks></PropertyGroup>"); var file = fs.CreateFakeFile(projectString, "./klm.csproj"); var workDir = cakeContext.Environment.WorkingDirectory.FullPath; var result = cakeContext.GetProjectAssemblies(file.Path, "Release"); result.Should().HaveCount(2).And.BeEquivalentTo( new[] { new FilePath($"{workDir}/bin/Release/netstandard2.0/klm.exe"), new FilePath($"{workDir}/bin/Release/net45/klm.exe") }); }