title: .net standard old csproj, migrate to packageReference
body: <p>I want to migrate packages.config to packagesReference. I have solution consisting of 46 projects, For ASP.NET it's not possible to migrate whole .SLN so we need to go one project by one using this workaround -&gt; <a href="https://github.com/NuGet/docs.microsoft.com-nuget/issues/860#issuecomment-409207305" rel="nofollow noreferrer">packageReference issue for asp.net</a></p>
  <p>I have succeed. But when I try to build this project, I'm getting multiple errors like below:</p>
  <pre><code>The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  <p>Seems like project doesn't see included NuGets. Maybe we need to upgrade it to new csproj? It's still in old 2013/2015 version.</p>
  <p>First property Group looks like this:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;Project ToolsVersion=&quot;12.0&quot; DefaultTargets=&quot;Build&quot; xmlns=&quot;http://schemas.microsoft.com/developer/msbuild/2003&quot;&gt;
    &lt;Import Project=&quot;$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props&quot; Condition=&quot;Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')&quot; /&gt;
    &lt;PropertyGroup&gt;
      &lt;Configuration Condition=&quot; '$(Configuration)' == '' &quot;&gt;Debug&lt;/Configuration&gt;
      &lt;Platform Condition=&quot; '$(Platform)' == '' &quot;&gt;AnyCPU&lt;/Platform&gt;
      &lt;ProductVersion&gt;
      &lt;/ProductVersion&gt;
      &lt;SchemaVersion&gt;2.0&lt;/SchemaVersion&gt;
      &lt;RestoreProjectStyle&gt;PackageReference&lt;/RestoreProjectStyle&gt;
      &lt;ProjectGuid&gt;{C186BDC8-3606-4C75-B807-3389C0160030}&lt;/ProjectGuid&gt;
      &lt;ProjectTypeGuids&gt;{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}&lt;/ProjectTypeGuids&gt;
      &lt;OutputType&gt;Library&lt;/OutputType&gt;
      &lt;AppDesignerFolder&gt;Properties&lt;/AppDesignerFolder&gt;
      &lt;RootNamespace&gt;ProjectName&lt;/RootNamespace&gt;
      &lt;AssemblyName&gt;ProjectName&lt;/AssemblyName&gt;
      &lt;TargetFrameworkVersion&gt;v4.8&lt;/TargetFrameworkVersion&gt;
      &lt;MvcBuildViews&gt;false&lt;/MvcBuildViews&gt;
      &lt;UseIISExpress&gt;true&lt;/UseIISExpress&gt;
      &lt;IISExpressSSLPort /&gt;
      &lt;IISExpressAnonymousAuthentication /&gt;
      &lt;IISExpressWindowsAuthentication /&gt;
      &lt;IISExpressUseClassicPipelineMode /&gt;
      &lt;SccProjectName&gt;SAK&lt;/SccProjectName&gt;
      &lt;SccLocalPath&gt;SAK&lt;/SccLocalPath&gt;
      &lt;SccAuxPath&gt;SAK&lt;/SccAuxPath&gt;
      &lt;SccProvider&gt;SAK&lt;/SccProvider&gt;
      &lt;UseGlobalApplicationHostFile /&gt;
      &lt;Use64BitIISExpress /&gt;
      &lt;TargetFrameworkProfile /&gt;
      &lt;NuGetPackageImportStamp&gt;
      &lt;/NuGetPackageImportStamp&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=&quot; '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' &quot;&gt;
      &lt;DebugSymbols&gt;true&lt;/DebugSymbols&gt;
      &lt;DebugType&gt;full&lt;/DebugType&gt;
      &lt;Optimize&gt;false&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;DEBUG;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
      &lt;DocumentationFile&gt;
      &lt;/DocumentationFile&gt;
      &lt;ExcludeGeneratedDebugSymbol&gt;false&lt;/ExcludeGeneratedDebugSymbol&gt;
      &lt;LangVersion&gt;latest&lt;/LangVersion&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=&quot; '$(Configuration)|$(Platform)' == 'Release|AnyCPU' &quot;&gt;
      &lt;DebugType&gt;pdbonly&lt;/DebugType&gt;
      &lt;Optimize&gt;true&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
      &lt;DocumentationFile&gt;content\doc\api-doc.xml&lt;/DocumentationFile&gt;
      &lt;ExcludeGeneratedDebugSymbol&gt;false&lt;/ExcludeGeneratedDebugSymbol&gt;
      &lt;FilesToIncludeForPublish&gt;AllFilesInTheProject&lt;/FilesToIncludeForPublish&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      &lt;Reference Include=&quot;CSharpSDK, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL&quot;&gt;
        &lt;SpecificVersion&gt;False&lt;/SpecificVersion&gt;
        &lt;HintPath&gt;..\..\Core\Libs\CSharpSDK.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
      &lt;Reference Include=&quot;Microsoft.CSharp&quot; /&gt;
      &lt;Reference Include=&quot;System&quot; /&gt;
      &lt;Reference Include=&quot;System.ComponentModel.Composition&quot; /&gt;
      &lt;Reference Include=&quot;System.Data&quot; /&gt;
      &lt;Reference Include=&quot;System.Data.DataSetExtensions&quot; /&gt;
      &lt;Reference Include=&quot;System.Data.OracleClient&quot; /&gt;
      &lt;Reference Include=&quot;System.Drawing&quot; /&gt;
      &lt;Reference Include=&quot;System.IdentityModel&quot; /&gt;
      &lt;Reference Include=&quot;System.identitymodel.services&quot; /&gt;
      &lt;Reference Include=&quot;System.IO.Compression&quot; /&gt;
      &lt;Reference Include=&quot;System.Net&quot; /&gt;
      &lt;Reference Include=&quot;System.Numerics&quot; /&gt;
      &lt;Reference Include=&quot;System.Runtime.Caching&quot; /&gt;
      &lt;Reference Include=&quot;System.Security&quot; /&gt;
      &lt;Reference Include=&quot;System.ServiceModel&quot; /&gt;
      &lt;Reference Include=&quot;System.ServiceProcess&quot; /&gt;
      &lt;Reference Include=&quot;System.Transactions&quot; /&gt;
      &lt;Reference Include=&quot;System.Web.DynamicData&quot; /&gt;
      &lt;Reference Include=&quot;System.Web.Entity&quot; /&gt;
      &lt;Reference Include=&quot;System.Web.ApplicationServices&quot; /&gt;
      &lt;Reference Include=&quot;System.ComponentModel.DataAnnotations&quot; /&gt;
      &lt;Reference Include=&quot;System.Web.Extensions&quot; /&gt;
      &lt;Reference Include=&quot;System.Web&quot; /&gt;
      &lt;Reference Include=&quot;System.Web.Abstractions&quot; /&gt;
      &lt;Reference Include=&quot;System.Web.Routing&quot; /&gt;
      &lt;Reference Include=&quot;System.Windows.Forms&quot; /&gt;
      &lt;Reference Include=&quot;System.Xml&quot; /&gt;
      &lt;Reference Include=&quot;System.Configuration&quot; /&gt;
      &lt;Reference Include=&quot;System.Runtime.Serialization&quot; /&gt;
      &lt;Reference Include=&quot;System.Net.Http.WebRequest&quot;&gt;
      &lt;/Reference&gt;
      &lt;Reference Include=&quot;System.Xml.Linq&quot; /&gt;
      &lt;Reference Include=&quot;WindowsBase&quot; /&gt;
    &lt;/ItemGroup&gt;
  </code></pre>
  <p>Next item group is <code>ProjectReference</code> and other controller,content etc.</p>
  <p>Thanks,
  Rafal</p>