Skip to content

Commit d57c026

Browse files
Update NU1105.md to contain invalid tfm (#3418)
1 parent 08b7f0f commit d57c026

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/reference/errors-and-warnings/NU1105.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ f1_keywords:
1212

1313
# NuGet Error NU1105
1414

15+
## Scenario 1
16+
1517
> Unable to read project information for 'ProjectFile'. The project file may be invalid or missing targets required for restore.
1618
1719
### Issue
@@ -36,3 +38,16 @@ The error could also mean that the project is unloaded.
3638
* If you are using Visual Studio 2019 or later, NuGet has the ability to re-use artifacts from the previous restore for unloaded projects. In order for this scenario to work, you need to ensure that all projects currently in the solution have been restored from the command line prior to loading them in Visual Studio.
3739

3840
* Alternatively, reload the project.
41+
42+
## Scenario 2
43+
44+
> Invalid target framework 'net.6.0'
45+
46+
### Issue
47+
The project file exists but specifies an invalid target framework: `'net.6.0'`.
48+
This can occur due to a typo or use of an unsupported format.
49+
50+
### Solution
51+
52+
Update the project file to use a valid target framework. In this case, replace `'net.6.0'` with `'net6.0'` (without the extra dot).
53+
For a full list of supported frameworks and their correct formats, refer to the [.NET Target Frameworks](/dotnet/standard/frameworks) documentation.

0 commit comments

Comments
 (0)