You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Unable to find code signing certificate in the current user’s Windows certificate store."
4
-
ms.date: "05/05/2022"
2
+
title: MSB3327 diagnostic code
3
+
description: Learn about the possible causes of the MSB3327 build error and get troubleshooting tips.
4
+
ms.date: 04/15/2025
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3327
@@ -18,22 +18,30 @@ ms.subservice: msbuild
18
18
---
19
19
# MSB3327
20
20
21
-
The full error text is similar to the following example:
21
+
This article describes the MSB3327 error code.
22
22
23
-
```output
24
-
MSB3327: Unable to find code signing certificate in the current user’s Windows certificate store. To correct this, either disable signing of the ClickOnce manifest or install the certificate into the certificate store.
25
-
```
23
+
## Message text
24
+
25
+
`MSB3327: Unable to find code signing certificate in the current user’s Windows certificate store. To correct this, either disable signing of the ClickOnce manifest or install the certificate into the certificate store.`
26
+
27
+
## Description
26
28
27
-
You could get the error if you enabled **Sign the ClickOnce manifests** and the .pfx file specified for ClickOnce manifest signing could not be found in your certificate store when MSBuild was trying to publish the manifest.
29
+
You might get this error if you enable the **Sign the ClickOnce manifests**feature, and the `.pfx` file specified for ClickOnce manifest signing isn't found in your certificate store when MSBuild tries to publish the manifest.
28
30
29
-
To resolve this error, try re-importing the .pfx file again in the certificate store. To re-import the .pfx file, right-click the .pfx file in Windows Explorer and choose **Install PFX**.
31
+
## Resolution
30
32
31
-

33
+
To resolve this error, try reimporting the `.pfx` file in the certificate store. In Windows Explorer, right-click the `.pfx` file and select **Install PFX**.
32
34
33
-
See [How to: Sign application and deployment manifests](../../ide/how-to-sign-application-and-deployment-manifests.md) or for newer .NET projects in Visual Studio 2019 or later, see [Deploy a .NET Windows Desktop application using ClickOnce](../../deployment/quickstart-deploy-using-clickonce-folder.md).
35
+
:::image type="content" source="media/msb3327/signing-install-pfx.png" alt-text="Screenshot of the Signing tab and the Sign the ClickOnce manifests option selected.":::
34
36
35
-
When running in a non-interactive environment, such as a script in a pipeline, use the command-line tool [certutil](/windows-server/administration/windows-commands/certutil).
37
+
For more information, see [Sign application and deployment manifests](../../ide/how-to-sign-application-and-deployment-manifests.md). For newer .NET projects in Visual Studio 2019 or later, see [Deploy a .NET Windows Desktop application by using ClickOnce](../../deployment/quickstart-deploy-using-clickonce-folder.md).
38
+
39
+
When you run the program in a non-interactive environment, such as a script in a pipeline, use the command-line tool [certutil](/windows-server/administration/windows-commands/certutil):
36
40
37
41
```cmd
38
42
certutil –f –p [certificate_password] –importpfx <path to pfx file>
description: "This error occurs when MSBuild encounters an error while trying to sign an output file."
4
-
ms.date: "08/15/2022"
2
+
title: MSB3482 diagnostic code
3
+
description: Learn about the possible causes of the MSB3482 build error and get troubleshooting tips.
4
+
ms.date: 04/15/2025
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3482
@@ -18,26 +18,40 @@ ms.subservice: msbuild
18
18
---
19
19
# MSB3482
20
20
21
-
This error occurs when MSBuild encounters an error while trying to sign an output file when running the [SignFile task](../signfile-task.md).
21
+
This article describes the MSB3482 error code.
22
22
23
-
The message resembles the following, but this text is followed by additional information from the signing tool:
23
+
## Message text
24
24
25
-
```output
26
-
MSB3482: An error occurred while signing:
27
-
```
25
+
`MSB3482: An error occurred while signing:`
26
+
27
+
## Description
28
+
29
+
This error occurs when MSBuild encounters an error when it tries to sign an output file while running the [SignFile task](../signfile-task.md).
30
+
31
+
## Resolution
28
32
29
-
Check that the sign file exists.
33
+
First, confirm the sign file exists. Next, make sure the signing tool is installed (the tool is installed as part of Visual Studio).
30
34
31
-
Make sure the signing tool is installed; it's installed with Visual Studio. Look to the additional information provided by the signing tool to see more about what happened.
35
+
The standard output message text is followed by additional information from the signing tool. Look to the additional information to determine the cause of the problem. If the error mentions an option that isn't supported, such as the `/fd` option, you might have an older version of the *signtool.exe* file on your system. When the process encounters the older or unsupported version of the file, MSBuild returns this error message.
32
36
33
-
If the error mentions an option that isn't supported, like the `/fd` option, you might have an older version of *signtool.exe* that was found on the system. MSBuild needs the version installed with Visual Studio or the .NET SDK. The fix depends on your specific situation, but possible fixes include editing the PATH environment variable to reorder the directories, uninstalling, renaming, or otherwise hiding the old *signtool.exe*, or uninstalling or updating the software package it's a part of, for example, updating an old version of the Windows SDK.
37
+
MSBuild works with the version of the tool in the Visual Studio or .NET SDK installation. The fix for the issue depends on your specific situation. Here are some possible solutions:
34
38
35
-
If the thumbprint is invalid, it will trigger a cryptographic error, and you might see this error. Check the string value given as the `CertificateThumbprint` parameter to the `SignFile` task. The certificate thumbprint is the SHA-1 hash of the certificate. For more information, see [Obtain the SHA-1 hash of a trusted root CA certificate](/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc733076\(v\=ws.10\)). If you copy and paste the thumbprint from the certificate details, make sure you do not include the extra (3F) invisible character, which may prevent `SignFile` from finding the certificate.
39
+
- Edit the PATH environment variable and reorder the directories
40
+
- Uninstall, rename, or otherwise hide the older version of the *signtool.exe* tool
41
+
- Uninstall or update the software package that contains the tool, such as updating an older version of the Windows SDK
36
42
37
-
Test certificates expire after a period of time. You might have to create a new one. See [How to: Sign application and deployment manifests](../../ide/how-to-sign-application-and-deployment-manifests.md)or for newer .NET projects in Visual Studio 2019 or later, see [Deploy a .NET Windows Desktop application using ClickOnce](../../deployment/quickstart-deploy-using-clickonce-folder.md).
43
+
### Invalid thumbprint or certificate
38
44
39
-
When running in a non-interactive environment, such as a script in a pipeline, you can create a certificate by using the command-line tool [certutil](/windows-server/administration/windows-commands/certutil).
45
+
If the thumbprint is invalid, it triggers a cryptographic error, and you might see the MSB3482 error. Check the string value for the `CertificateThumbprint` parameter to the `SignFile` task. The certificate thumbprint is the SHA-1 hash of the certificate. For more information, see [Obtain the SHA-1 hash of a trusted root CA certificate](/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc733076\(v\=ws.10\)). If you copy and paste the thumbprint from the certificate details, make sure you don't include the extra (`3F`) invisible character, which can prevent the `SignFile` task from finding the certificate.
46
+
47
+
Test certificates expire after a period of time. You might have to create a new certificate. For more information, see [Sign application and deployment manifests](../../ide/how-to-sign-application-and-deployment-manifests.md). For newer .NET projects in Visual Studio 2019 or later, see [Deploy a .NET Windows Desktop application using ClickOnce](../../deployment/quickstart-deploy-using-clickonce-folder.md).
48
+
49
+
When you run the program in a non-interactive environment, such as a script in a pipeline, you can create a certificate by using the command-line tool [certutil](/windows-server/administration/windows-commands/certutil):
40
50
41
51
```cmd
42
52
certutil –f –p [certificate_password] –importpfx <path to pfx file>
Copy file name to clipboardExpand all lines: docs/msbuild/errors/msb3491.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: "MSB3491: Could not write lines to file 'filename'."
3
-
description: "This error occurs when MSBuild tries to write to a file, but the operating system returns an error."
4
-
ms.date: "08/15/2022"
2
+
title: MSB3491 diagnostic code
3
+
description: Learn about the possible causes of the MSB3491 build error and get troubleshooting tips.
4
+
ms.date: 04/15/2025
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3491
@@ -18,12 +18,20 @@ ms.subservice: msbuild
18
18
---
19
19
# MSB3491
20
20
21
+
This article describes the MSB3491 error code.
22
+
23
+
## Message text
24
+
25
+
`MSB3491: Could not write lines to file 'filename'.`
26
+
27
+
## Description
28
+
21
29
This error occurs when MSBuild tries to write to a file, but the operating system returns an error.
22
30
23
-
The message resembles the following, but this text is followed by additional information from the operating system:
31
+
## Resolution
32
+
33
+
The standard output message text is followed by additional information from the operating system. Look to the additional information provided by the operating system to determine the cause of the problem.
24
34
25
-
```output
26
-
MSB3491: Could not write lines to file 'filename'.
27
-
```
35
+
## Applies to
28
36
29
-
Look to the additional information provided by the operating system to determine the cause of the problem.
Copy file name to clipboardExpand all lines: docs/msbuild/errors/msb3541.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: "MSB3541: 'entity' has invalid value 'value'."
3
-
description: "This error occurs when an invalid value for an MSBuild element or attribute was found during the processing of a project file."
4
-
ms.date: "08/15/2022"
2
+
title: MSB3541 diagnostic code
3
+
description: Learn about the possible causes of the MSB3541 build error and get troubleshooting tips.
4
+
ms.date: 04/15/2025
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3541
@@ -18,14 +18,22 @@ ms.subservice: msbuild
18
18
---
19
19
# MSB3541
20
20
21
-
This error occurs when an invalid value for the `Path` or `Files` arguments were found during the execution of the `FindUnderPath` task. See [FindUnderPath task](../findunderpath-task.md).
21
+
This article describes the MSB3541 error code.
22
22
23
-
The message resembles the following, but this text is followed by the exception text from the underlying code:
23
+
## Message text
24
24
25
-
```output
26
-
MSB3541: 'entity' has invalid value 'value'.
27
-
```
25
+
`MSB3541: 'entity' has invalid value 'value'.`
26
+
27
+
## Description
28
+
29
+
This error occurs when an invalid value for the `Path` or `Files` arguments is found during execution of the `FindUnderPath` task. For more information, see [FindUnderPath task](../findunderpath-task.md). The error output message is followed by the exception text from the underlying code.
30
+
31
+
## Resolution
28
32
29
33
Look to the exception message provided by the underlying code to determine the cause of the problem.
30
34
31
35
Check the syntax of the element and its attributes that resulted in the error.
Copy file name to clipboardExpand all lines: docs/msbuild/errors/msb3552.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: "MSB3552: Resource file 'filename' cannot be found"
3
-
description: "This error occurs when a request resource file was not found. Check the path and spelling of the filename."
4
-
ms.date: "06/18/2021"
2
+
title: MSB3552 diagnostic code
3
+
description: Learn about the possible causes of the MSB3552 build error and get troubleshooting tips.
4
+
ms.date: 04/15/2025
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3552
@@ -16,6 +16,22 @@ ms.author: ghogen
16
16
manager: mijacobs
17
17
ms.subservice: msbuild
18
18
---
19
-
# MSB3552: Resource file 'filename' cannot be found
19
+
# MSB3552
20
20
21
-
This error occurs when a request resource file was not found. Check the path and spelling of the filename. These files are generally specified as `EmbeddedResource` items in the project file.
21
+
This article describes the MSB3552 error code.
22
+
23
+
## Message text
24
+
25
+
`MSB3552: Resource file 'filename' cannot be found.`
26
+
27
+
## Description
28
+
29
+
This error occurs when a requested resource file isn't found.
30
+
31
+
## Resolution
32
+
33
+
Check the path and spelling of the filename. These files are often specified as `EmbeddedResource` items in the project file.
Copy file name to clipboardExpand all lines: docs/msbuild/errors/msb3553.md
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: "MSB3553: Resource file 'name' has an invalid name"
3
-
description: "This error occurs when there's a problem with the name of a resource file."
4
-
ms.date: "07/07/2021"
2
+
title: MSB3553 diagnostic code
3
+
description: Learn about the possible causes of the MSB3553 build error and get troubleshooting tips.
4
+
ms.date: 04/15/2025
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3553
@@ -16,8 +16,24 @@ ms.author: ghogen
16
16
manager: mijacobs
17
17
ms.subservice: msbuild
18
18
---
19
-
# Resource file 'name' has an invalid name
19
+
# MSB3553
20
20
21
-
This error occurs when there's a problem with the name of a resource file. Check that the file has an extension appropriate to its type (for example, .resx), and that it doesn't contain any characters that are not allowed by the operating system. Refer to your operating system documentation for characters that are invalid in a filename or path. For Windows, see [Naming a file](/windows/win32/fileio/naming-a-file#naming-conventions).
21
+
This article describes the MSB3553 error code.
22
22
23
-
This error could also occur if paths exceed the maximum path length. If you use long paths, check the Windows operating system LongPathsEnabled setting. See [Maximum file path limitation](/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd).
23
+
## Message text
24
+
25
+
`MSB3553: Resource file 'name' has an invalid name.`
26
+
27
+
## Description
28
+
29
+
This error occurs when there's a problem with the name of a resource file.
30
+
31
+
## Resolution
32
+
33
+
Verify that the file extension corresponds to the file type (for example, `.resx`). Confirm the file doesn't contain any invalid characters as define by the operating system. Refer to your operating system documentation for characters that are invalid in a filename or path. For Windows, see [Naming a file](/windows/win32/fileio/naming-a-file#naming-conventions).
34
+
35
+
This error can also occur when file paths exceed the maximum path length. If you use long paths, check the Windows operating system `LongPathsEnabled` setting. For more information, see [Maximum file path limitation](/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd).
Copy file name to clipboardExpand all lines: docs/msbuild/errors/msb3554.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
-
title: "MSB3554: Cannot write to the output file 'filename'."
3
-
description: "This error occurs when MSBuild encounters a problem when trying to write to a specific output file."
4
-
ms.date: "06/18/2021"
2
+
title: MSB3554 diagnostic code
3
+
description: Learn about the possible causes of the MSB3554 build error and get troubleshooting tips.
4
+
ms.date: 04/15/2025
5
5
ms.topic: "error-reference"
6
6
f1_keywords:
7
7
- MSB3554
@@ -16,9 +16,24 @@ ms.author: ghogen
16
16
manager: mijacobs
17
17
ms.subservice: msbuild
18
18
---
19
-
# MSB3554: Cannot write to the output file 'filename'
19
+
# MSB3554
20
20
21
-
This error occurs when MSBuild encounters a problem when trying to write to a specific output file. When you see this error, the error text from the operating system is also shown just after it. Look to the specific error text for additional information about the problem.
21
+
This article describes the MSB3554 error code.
22
22
23
-
A common cause is that the output file is in use by another process. Close other applications that might be using the same file, and try building again.
23
+
## Message text
24
24
25
+
`MSB3554: Cannot write to the output file 'filename'.`
26
+
27
+
## Description
28
+
29
+
This error occurs when MSBuild encounters a problem when trying to write to a specific output file. A common cause is that the output file is in use by another process. The error message output is followed by the specific error text from the operating system.
30
+
31
+
## Resolution
32
+
33
+
The standard output message text is followed by additional information from the operating system. Look to the additional information provided by the operating system to determine the cause of the problem.
34
+
35
+
Close other applications that might be using the same file, and try building again.
0 commit comments