LoginSignup
0
0

cscの作法 その505

Last updated at Posted at 2024-06-04

概要

cscの作法、調べてみた。
wpf見つけたので、msbuildでコンパイルしてみた。

参考にしたページ

環境

windows11

ビルドを書く。


<Project DefaultTargets='Build' xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>
	<PropertyGroup>
		<Configuration>Debug</Configuration>
		<Platform>AnyCPU</Platform>
		<RootNamespace>Test</RootNamespace>
		<AssemblyName>WpfApp3</AssemblyName>
		<OutputPath>.\bin\Debug\</OutputPath>
	</PropertyGroup>
	<ItemGroup>
		<Reference Include='System' />
		<Reference Include='System.Xml' />
		<Reference Include='WindowsBase' />
		<Reference Include='PresentationCore' />
		<Reference Include='PresentationFramework' />
		<Reference Include="System.Xaml">
			<RequiredTargetFramework>4.0</RequiredTargetFramework>
		</Reference>
	</ItemGroup>
	<ItemGroup>
		<ApplicationDefinition Include="app3.xaml" />
		<Page Include="MainWindow.xaml" />
		<Compile Include='User.cs' />
		<Compile Include='MainWindowVM.cs' />
		<Compile Include='MainWindow.xaml.cs' />
	</ItemGroup>
	<Import Project='$(MSBuildBinPath)\Microsoft.CSharp.targets' />
	<Import Project='$(MSBuildBinPath)\Microsoft.WinFX.targets' />
</Project>


写真

image.png

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0