title: Migrate .csproj from .NET Framework 4.5 to .NET Core 2.1.1
body: <p>I have a .NET Core 2.1.1 project, and I am trying to copy the contents from an existing .NET Framework 4.5 project by updating the .csproj file. </p>
  
  <p>I guess there are many different parts that wont't work on a .NET Core 2.1.1 project.</p>
  
  <p>So my main question is how to migrate a .csproj file from .NET Framework 4.5 to .NET Core 2.1.1.</p>
  
  <p>The first thing I need to do is to copy the contents from one project to another:</p>
  
  <p>This is a working .NET Framework 4.5 .csproj line that does exactly that:</p>
  
  <pre><code>&lt;Target Name="BeforeBuild"&gt;
      &lt;PropertyGroup&gt;
        &lt;GeneratedMigrationFile&gt;$(IntermediateOutputPath)Migrations.Generated.cs&lt;/GeneratedMigrationFile&gt;
      &lt;/PropertyGroup&gt;
      &lt;ItemGroup&gt;
        &lt;SqlFiles Include="Data\*.sql" /&gt;
        &lt;Compile Condition="'@(SqlFiles)' != ''" Include="$(GeneratedMigrationFile)" /&gt;
        &lt;EmbeddedResource Include="@(SqlFiles)" /&gt;
        &lt;None Include="..\..\_libBinary\FluentMigrator.1.1.1.0\tools\*.*"&gt;
          &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
        &lt;/None&gt;
      &lt;/ItemGroup&gt;
      &lt;MakeDir Directories="$(IntermediateOutputPath)" /&gt;
      &lt;Delete Files="$(GeneratedMigrationFile)" /&gt;
      &lt;GenerateMigration Condition="'@(SqlFiles)' != ''" Namespace="$(RootNamespace)" Id="%(SqlFiles.Filename)" FileId="%(SqlFiles.Filename)" Output="$(GeneratedMigrationFile)" /&gt;
    &lt;/Target&gt;
  ...
  ....
  </code></pre>
  
  <p>However, when doing the same in a .NET Core 2.1.1 .csproj, it seems not to be working and the content of the folder is not being copied.</p>
  
  <p>I deleted the following line because it was causing a build error:</p>
  
  <pre><code>&lt;GeneratedMigrationFile&gt;$(IntermediateOutputPath)Migrations.Generated.cs&lt;/GeneratedMigrationFile&gt;
  </code></pre>
  
  <p>How can I migrate the .csproj file?</p>