Copy file to build directory
How would I make it so a file I added to the program files would get copied to the build directory when the program is built?
.csproj file then and add
bin/Debug/net8.0ContentNone<ItemGroup>
<Content Update="myfile.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup><Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<Content Update="testingprogram.ASS">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>ASS_Compiler</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project><ItemGroup>
<None Update="foo.txt" CopyToOutputDirectory="Always" />
</ItemGroup> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ <CopyToPublishDirectory>Always</CopyToPublishDirectory>