[英]WPF - how to set the build Action to 'Resource" with VS Code?
我想使用 VS Code 和 .net Core 3.1.102 创建一个 WPF 应用程序我有一个 Image 问题,我看不到它..
<Grid>
<Image Source="system-tray.jpg"/>
</Grid>
https://stackoverflow.com/users/2987285/jaykebird已经为 Visual Studio 解决了这个问题,他的解决方案是“确保 Visual Studio 中图像文件的构建操作设置为“资源”。但是如何设置使用 VS Code 构建“资源”操作?
在 csproj 文件中,添加
<ItemGroup>
<Resource Include="system-tray.jpg" />
</ItemGroup>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.