title: Trying to remove NLog.config results in "Cannot modify an evaluated object originating in an imported file"
body: <p>I have been moving the content of <code>NLog.config</code> to my <code>App.config</code> and was about to delete the original nlog configuration file. </p>
  
  <p>However <code>Visual Studio 2017 Enterprise (15.8.4)</code> prevents me from doing so with the following error message: </p>
  
  <blockquote>
    <p>Cannot modify an evaluated object originating in an imported file.
    C:......csproj.nuget.g.props</p>
  </blockquote>
  
  <p>When opening the aforementioned file I find the following section: </p>
  
  <pre><code>  &lt;ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "&gt;
  &lt;None Include="$(NuGetPackageRoot)nlog.config\4.5.10\contentFiles\any\any\NLog.config" Condition="Exists('$(NuGetPackageRoot)nlog.config\4.5.10\contentFiles\any\any\NLog.config')"&gt;
    &lt;NuGetPackageId&gt;NLog.Config&lt;/NuGetPackageId&gt;
    &lt;NuGetPackageVersion&gt;4.5.10&lt;/NuGetPackageVersion&gt;
    &lt;NuGetItemType&gt;None&lt;/NuGetItemType&gt;
    &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
    &lt;TargetPath&gt;NLog.config&lt;/TargetPath&gt;
    &lt;Private&gt;True&lt;/Private&gt;
    &lt;Link&gt;NLog.config&lt;/Link&gt;
  &lt;/None&gt;
  </code></pre>
  
  <p></p>
  
  <p>After deleting the section <code>&lt;ItemGroup&gt;</code> the <code>NLog.config</code> was gone, but came up again with autogenerated default content. </p>
  
  <p>So long story short: How can I delete the file <code>NLog.config</code> at the root of my project when I have moved all the configuration stuff to <code>App.config</code></p>