dotnet / dotnet/sdk

Setting <IsPublishable>false</IsPublishable> should force PublishIISAssets to false.

Open
#42,048 3 comments 1 reaction 1 assignee Claimed by @baronfel View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

I have the following my.csproj:

```


net6.0
false

...

```

When I run `msbuild -t:publish my.csproj` I get this error:

```
C:\Program Files\dotnet\sdk\8.0.205\Sdks\Microsoft.NET.Sdk.Publish\targets\TransformTargets\Microsoft.NET.Sdk.Publish.TransformFiles.targets(50,5): error MSB4044: The "TransformWebConfig" task was not given a value for the required parameter "TargetPath". [my.csproj]
```

My workaround was to add
```
false
```
to my.csproj, but I think it should be set to false implicitly in `Microsoft.NET.Sdk.Publish.targets`:

```
false
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.