Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize the text in the common target #10388

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 70 additions & 44 deletions src/Tasks/Microsoft.Common.CurrentVersion.targets

Large diffs are not rendered by default.

54 changes: 53 additions & 1 deletion src/Tasks/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -3051,6 +3051,58 @@
<comment>{StrBegin="MSB9904: "}</comment>
</data>

<data name="CommonTarget.BaseIntermediateOutputPathMismatchWarning">
<value>MSB3539: The value of the property &quot;BaseIntermediateOutputPath&quot; was modified after it was used by MSBuild which can lead to unexpected build results. Tools such as NuGet will write outputs to the path specified by the &quot;MSBuildProjectExtensionsPath&quot; instead. To set this property, you must do so before Microsoft.Common.props is imported, for example by using Directory.Build.props. For more information, please visit https://go.microsoft.com/fwlink/?linkid=869650"</value>
<comment>{StrBegin="MSB3539: "} </comment>
</data>

<data name="CommonTarget.MSBuildProjectExtensionsPathModifiedAfterUse">
<value>MSB3540: The value of the property &quot;MSBuildProjectExtensionsPath&quot; was modified after it was used by MSBuild which can lead to unexpected build results. To set this property, you must do so before Microsoft.Common.props is imported, for example by using Directory.Build.props. For more information, please visit https://go.microsoft.com/fwlink/?linkid=869650</value>
<comment>{StrBegin="MSB3540: "}</comment>
</data>

<data name="CommonTarget.InvalidConfigurationTextWithBuildingInsideVisualStudio">
Copy link
Contributor

@Nirmal4G Nirmal4G Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<data name="CommonTarget.InvalidConfigurationTextWithBuildingInsideVisualStudio">
<data name="CommonSdk.InvalidConfigurationTextWhenBuildingInsideVisualStudio">

<value>The BaseOutputPath/OutputPath property is not set for project '{0}'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='{1}' Platform='{2}'. This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.</value>
<comment>LOCALIZATION: Do not localize the words "BaseOutputPath/OutputPath", "Configuration" and "Platform"</comment>
</data>

<data name="CommonTarget.InvalidConfigurationTextWithoutBuildingInsideVisualStudio">
Copy link
Contributor

@Nirmal4G Nirmal4G Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<data name="CommonTarget.InvalidConfigurationTextWithoutBuildingInsideVisualStudio">
<data name="CommonSdk.InvalidConfigurationTextWhenBuildingOutsideVisualStudio">

<value>The BaseOutputPath/OutputPath property is not set for project '{0}'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='{1}' Platform='{2}'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.</value>
<comment>LOCALIZATION: Do not localize the words "BaseOutputPath/OutputPath", "Configuration" and "Platform"</comment>
</data>

<data name="CommonTarget.ManifestResourceWithNoCultureWarning">
<value>{0}: {1} item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='{2}', Type='{3}', and optional LogicalName.</value>
</data>

<data name="CommonTarget.PropertyWithTrailingSlash">
<value>The {0} must end with a trailing slash.</value>
</data>

<data name="CommonTarget.DeploymentUnpublishable">
<value>Skipping unpublishable project.</value>
</data>

<data name="CommonTarget.GenerateManifestsOnlyForExe">
<value>Publish is only valid for 'Windows Application' or 'Console Application' project types.</value>
</data>

<data name="CommonTarget.SigningKeyRequired">
<value>A signing key is required in order to publish this project. Please specify a ManifestKeyFile or ManifestCertificateThumbprint value. Publishing from Visual Studio will automatically configure a signing key for this project.</value>
</data>

<data name="CommonTarget.RunTargetDependsOnMessage">
<value>Cannot run '{0}' because project output type is not '.exe'</value>
</data>

<data name="CommonTarget.CrossTargetingGetTargetFrameworks">
<value>Internal MSBuild error: Non-CrossTargeting GetTargetFrameworks target should not be used in cross targeting (outer) build</value>
</data>

<data name="CommonTarget.SplitResourcesByCultureEmbeddedResourceMessage">
<value>{0}: {1} item type is deprecated. Use EmbeddedResource items instead.</value>
</data>

<!--
The tasks message bucket is: MSB3001 - MSB3999

Expand Down Expand Up @@ -3142,7 +3194,7 @@

MSB4000 - MSB4200 Portable targets & tasks (vsproject\flavors\portable\msbuild)
MSB9000 - MSB9900 MSBuild targets files (C++)

MSB9901 - MSB9990 MSBuild common targets messages

The following codes are not longer used but have shipped so should not be reused:
Expand Down
60 changes: 60 additions & 0 deletions src/Tasks/Resources/xlf/Strings.cs.xlf

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

Loading