Skip to content

Commit

Permalink
Addressed PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mruxmohan4 committed May 4, 2022
1 parent 276a540 commit e818da4
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 40 deletions.
12 changes: 1 addition & 11 deletions src/Build.OM.UnitTests/Definition/ProjectItem_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -831,27 +831,17 @@ private static void ProjectGetterResultsInDriveEnumerationWarning(string unevalu
Helpers.ResetStateForDriveEnumeratingWildcardTests(env, "0");

// Setup
string content = @"
<Project>
<ItemGroup>
<i Include='i1'/>
</ItemGroup>
</Project>
";

TransientTestProjectWithFiles testProject = env.CreateTestProjectWithFiles("build.proj", content);
ProjectCollection projectCollection = new ProjectCollection();
MockLogger collectionLogger = new MockLogger();
projectCollection.RegisterLogger(collectionLogger);
Project project = new Project(testProject.ProjectFile, null, null, projectCollection);
Project project = new Project(projectCollection);

// Add item
_= project.AddItem("i", unevaluatedInclude);

// Verify
collectionLogger.WarningCount.ShouldBe(1);
collectionLogger.AssertLogContains("MSB5029");
collectionLogger.AssertLogContains(project.ProjectFileLocation.LocationString);
projectCollection.UnregisterAllLoggers();
}
finally
Expand Down
2 changes: 1 addition & 1 deletion src/Shared/Resources/Strings.shared.resx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
<comment>{StrBegin="MSB5028: "}UE: The project filename is provided separately to loggers.</comment>
</data>
<data name="WildcardResultsInDriveEnumeration" xml:space="preserve">
<value>MSB5029: The value "{0}" of the "{1}" attribute in element &lt;{2}&gt; in file {3} is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined.</value>
<value>MSB5029: The value "{0}" of the "{1}" attribute in element &lt;{2}&gt; in file "{3}" is a wildcard that results in enumerating all files on the drive, which was likely not intended. Check that referenced properties are always defined.</value>
<comment>{StrBegin="MSB5029: "}UE: This is a generic message that is displayed when we find a project element that has a drive enumerating wildcard value for one of its
attributes e.g. &lt;Compile Include="$(NotAlwaysDefined)\**\*.cs"&gt; -- if the property is undefined, the value of Include should not result in enumerating all files on drive.</comment>
</data>
Expand Down
4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.pt-BR.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.ru.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Shared/Resources/xlf/Strings.shared.tr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e818da4

Please sign in to comment.