Skip to content

Commit

Permalink
Merge pull request MicrosoftDocs#10573 from MicrosoftDocs/main6387251…
Browse files Browse the repository at this point in the history
…78354087431sync_temp

For protected branch, push strategy should use PR and merge to target branch method to work around git push error
  • Loading branch information
learn-build-service-prod[bot] authored Jan 15, 2025
2 parents abe1f2d + 54fa9fb commit a5b0397
Show file tree
Hide file tree
Showing 63 changed files with 2,882 additions and 1 deletion.
43 changes: 43 additions & 0 deletions docs/msbuild/errors/msb1001.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: "MSB1001 diagnostic code"
description: "Unknown switch."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1001
- MSBuild.UnknownSwitchError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1001 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1001 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1001: Unknown switch.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1001: "}UE: This occurs when the user passes in an unrecognized switch on the MSBuild.exe command-line.
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
44 changes: 44 additions & 0 deletions docs/msbuild/errors/msb1002.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: "MSB1002 diagnostic code"
description: "This switch does not take any parameters."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1002
- MSBuild.UnexpectedParametersError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1002 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1002 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1002: This switch does not take any parameters.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1002: "}UE: For example, if somebody types "msbuild.exe -noLogo:1", they would get this error because the -noLogo switch
should not be followed by any parameters ... it stands alone.
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
44 changes: 44 additions & 0 deletions docs/msbuild/errors/msb1003.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: "MSB1003 diagnostic code"
description: "Specify a project or solution file. The current working directory does not contain a project or solution file."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1003
- MSBuild.MissingProjectError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1003 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1003 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1003: "}UE: The user must either specify a project or solution file to build, or there must be a project file in the current directory
with a file extension ending in "proj" (e.g., foo.csproj), or a solution file ending in "sln".
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
44 changes: 44 additions & 0 deletions docs/msbuild/errors/msb1004.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: "MSB1004 diagnostic code"
description: "Specify the name of the target."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1004
- MSBuild.MissingTargetError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1004 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1004 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1004: Specify the name of the target.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1004: "}UE: This happens if the user does something like "msbuild.exe -target". The user must pass in an actual target name
following the switch, as in "msbuild.exe -target:blah".
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
44 changes: 44 additions & 0 deletions docs/msbuild/errors/msb1005.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: "MSB1005 diagnostic code"
description: "Specify a property and its value."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1005
- MSBuild.MissingPropertyError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1005 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1005 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1005: Specify a property and its value.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1005: "}UE: This happens if the user does something like "msbuild.exe -property". The user must pass in an actual property
name and value following the switch, as in "msbuild.exe -property:Configuration=Debug".
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
47 changes: 47 additions & 0 deletions docs/msbuild/errors/msb1006.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: "MSB1006 diagnostic code"
description: "Property is not valid."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1006
- MSBuild.InvalidPropertyError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1006 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1006 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1006: Property is not valid.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1006: "}UE: This message does not need in-line parameters because the exception takes care of displaying the invalid arg.
This error is shown if the user does any of the following:
msbuild.exe -property:foo (missing property value)
msbuild.exe -property:=4 (missing property name)
The user must pass in an actual property name and value following the switch, as in "msbuild.exe -property:Configuration=Debug".
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
44 changes: 44 additions & 0 deletions docs/msbuild/errors/msb1007.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: "MSB1007 diagnostic code"
description: "Specify a logger."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1007
- MSBuild.MissingLoggerError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1007 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1007 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1007: Specify a logger.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1007: "}UE: This happens if the user does something like "msbuild.exe -logger". The user must pass in an actual logger class
following the switch, as in "msbuild.exe -logger:XMLLogger,MyLogger,Version=1.0.2,Culture=neutral".
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
45 changes: 45 additions & 0 deletions docs/msbuild/errors/msb1008.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: "MSB1008 diagnostic code"
description: "Only one project can be specified."
ms.date: 01/14/2025
ms.topic: "error-reference"
f1_keywords:
- MSB1008
- MSBuild.DuplicateProjectSwitchError
dev_langs:
- "VB"
- "CSharp"
- "C++"
- "FSharp"
author: ghogen
ms.author: ghogen
manager: mijacobs
ms.subservice: msbuild
---

# MSB1008 diagnostic code

<!-- :::ErrorDefinitionDescription::: -->
<!-- :::editable-content name="introDescription"::: -->
This article describes the MSB1008 error code.
<!-- :::editable-content-end::: -->

## Message text

```output
MSB1008: Only one project can be specified.
```

<!-- :::editable-content name="postOutputDescription"::: -->
<!--
{StrBegin="MSBUILD : error MSB1008: "}UE: This happens if the user does something like "msbuild.exe myapp.proj myapp2.proj". This is not allowed.
MSBuild.exe will only build a single project. The help topic may link to an article about how to author an MSBuild project
that itself launches MSBuild on a number of other projects.
LOCALIZATION: The prefix "MSBUILD : error MSBxxxx:" should not be localized.
-->
<!-- :::editable-content-end::: -->
<!-- :::ErrorDefinitionDescription-end::: -->

## Applies to

All versions of MSBuild
Loading

0 comments on commit a5b0397

Please sign in to comment.