简体   繁体   中英

Can't find copy if newer button

I am learning how to use SFML.NET with Microsoft visual Studio 2014 with C# and I added the C# dll's found in the lib folder using add existing files on My solution.

I cannot however, find the copy if newer button in the dll's property anywhere.

All the dll's say in there properties is the following:

(name)
Date created
Date modified
File Path
File size 
Read only

Use the context (right click) menu on the DLLs in Solution Explorer, select "Properties". The "Copy to output directory" field of the properties panel includes a "Copy if newer" value.

If you are using .net core, you can manually edit the .csproj file, and add something like this:

  <ItemGroup>
    <None Update="FileIWantToCopy.txt">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM