问题描述
C:DocumentsandSettingsGaoPHOGE8>d:D:>cd123D:123>在cmd命令行下,首先进入123.csproj所在的文件夹,然后敲了下面两条命令,生成两个exe文件,发现,两个exe文件是一样的。为什么?C:WindowsMicrosoft.NETFrameworkv3.5MSBuild.exe123.csproj/p:Configuration=Release/p:OutputPath=binReleaseC:WindowsMicrosoft.NETFrameworkv3.5MSBuild.exe123.csproj/p:Configuration=Debug/p:OutputPath=binDebug
解决方案
解决方案二:
123目录下,总共有5个文件。有人帮我调调吗?123.csproj<ProjectToolsVersion="3.5"xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><PropertyGroup><AssemblyName>123</AssemblyName><OutputType>winexe</OutputType></PropertyGroup><ItemGroup><ReferenceInclude="System"/><ReferenceInclude="WindowsBase"/><ReferenceInclude="PresentationCore"/><ReferenceInclude="PresentationFramework"/></ItemGroup><ItemGroup><ApplicationDefinitionInclude="App.xaml"/><CompileInclude="App.xaml.cs"/><PageInclude="MainWindow.xaml"/><CompileInclude="MainWindow.xaml.cs"/></ItemGroup><ImportProject="$(MSBuildBinPath)Microsoft.CSharp.targets"/><ImportProject="$(MSBuildBinPath)Microsoft.WinFX.targets"/></Project>
App.xaml<Applicationx:Class="_123.App"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"StartupUri="MainWindow.xaml"><Application.Resources></Application.Resources></Application>
App.xaml.csusingSystem;usingSystem.Windows;namespace_123{///<summary>///InteractionlogicforApp.xaml///</summary>publicpartialclassApp:Application{}}
MainWindow.xaml<Windowx:Class="_123.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"Title="MainWindow"Height="200"Width="150"><Grid></Grid></Window>
MainWindow.xaml.csusingSystem;usingSystem.Windows;namespace_123{///<summary>///InteractionlogicforMainWindow.xaml///</summary>publicpartialclassMainWindow:Window{publicMainWindow(){InitializeComponent();}}}