2024年12月23日 星期一

C# 輸出檔案,OutputPath可指定輸出位置

 <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

  <PropertyGroup>

    <AssemblyName>IMES.MlangUtils</AssemblyName>

    <GenerateAssemblyInfo>False</GenerateAssemblyInfo>

    <UseWindowsForms>True</UseWindowsForms>

    <TargetFramework>net472</TargetFramework>

  </PropertyGroup>

  <PropertyGroup>

    <LangVersion>11.0</LangVersion>

    <AllowUnsafeBlocks>True</AllowUnsafeBlocks>

  </PropertyGroup>

  <PropertyGroup>

<!--AppendTargetFrameworkToOutputPath 可以不輸出 TargetFramework(net472)-->

    <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

    <ProduceReferenceAssembly>True</ProduceReferenceAssembly>

    <GenerateDocumentationFile>False</GenerateDocumentationFile>

    <BaseOutputPath>\bin</BaseOutputPath>

<OutputPath>D:\soruce_project\imes_with_mlangd\imes_with_mlang\bin\Debug\3rdDll</OutputPath>

  </PropertyGroup>

  <ItemGroup>

    <Reference Include="imes.client.utility">

      <HintPath>bin\imes.client.utility.dll</HintPath>

    </Reference>

    <Reference Include="System.Core" />

    <Reference Include="System.Data" />

  </ItemGroup>

</Project>