title: Visual Studio cannot publish
body: <p>I tried this with a new project just to confirm that I have not made any errors, but Visual Studio 2019 won't publish any dot net core project. Below is the error I am getting... Any help would be much appreciated...</p>
  
  <blockquote>
    <p>Severity  Code    Description Project File    Line    Suppression State
    Error       The "TransformAppSettings" task failed unexpectedly.
    System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
    File name: 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
       at Microsoft.NET.Sdk.Publish.Tasks.AppSettingsTransform.UpdateDestinationConnectionStringEntries(String destinationAppSettingsFilePath, ITaskItem[] destinationConnectionStrings)
       at Microsoft.NET.Sdk.Publish.Tasks.TransformAppSettings.TransformAppSettingsInternal()
       at Microsoft.NET.Sdk.Publish.Tasks.TransformAppSettings.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()</p>
    
    <p>WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. ProjectNameX        0</p>
  </blockquote>
  
  <p>Here is my project file</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk.Web"&gt;
  
    &lt;PropertyGroup&gt;
        &lt;TargetFramework&gt;netcoreapp3.0&lt;/TargetFramework&gt;
        &lt;UserSecretsId&gt;aspnet-ProjectNameX-A0D4A38F-C3FA-4FD3-8EBC-0F2201FBCD57&lt;/UserSecretsId&gt;
        &lt;DockerDefaultTargetOS&gt;Linux&lt;/DockerDefaultTargetOS&gt;
        &lt;DockerfileContext&gt;..\..\..&lt;/DockerfileContext&gt;
    &lt;/PropertyGroup&gt;
  
  
    &lt;ItemGroup&gt;
        &lt;PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.0.0-preview6.19307.2" /&gt;
        &lt;PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="3.0.0-preview6.19307.2" /&gt;
        &lt;PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="3.0.0-preview6.19307.2" /&gt;
        &lt;PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.0.0-preview6.19304.10" /&gt;
        &lt;PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.0.0-preview6.19304.10" /&gt;
        &lt;PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.7.12" /&gt;
    &lt;/ItemGroup&gt;
  </code></pre>
  
  <p></p>
  
  <p>While digging into visual studio folders, I found this...</p>
  
  <p><a href="https://i.stack.imgur.com/fjoqL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fjoqL.png" alt="Nuget Folders in the Visual Studio folders, with Newtonsoft.Json dll file"></a></p>