Skip to content

Commit

Permalink
修改项目构建信息
Browse files Browse the repository at this point in the history
  • Loading branch information
acgq committed Oct 29, 2023
1 parent 34aa8ff commit 2514799
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
3 changes: 2 additions & 1 deletion Core.UnitTests/Core.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Switcheroo.Core.UnitTests</RootNamespace>
<AssemblyName>Switcheroo.Core.UnitTests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
3 changes: 2 additions & 1 deletion Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Switcheroo.Core</RootNamespace>
<AssemblyName>Switcheroo.Core</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
4 changes: 3 additions & 1 deletion Installer/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Target Name="Main">
<RemoveDir Directories="Output" ContinueOnError="true" />
<CallTarget Targets="CreateSetup" />
<CallTarget Targets="CreatePortable" />
<!-- <CallTarget Targets="CreatePortable" />-->
<RemoveDir Directories="ProgramFiles" ContinueOnError="true" />
</Target>

Expand All @@ -27,6 +27,7 @@
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.dll" />
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.exe" />
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.exe.config" />
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.txt" />
<ProgramFiles Include="$(SolutionDir)\LICENSE.txt" />
</ItemGroup>
<Copy SourceFiles="@(ProgramFiles)" DestinationFolder="ProgramFiles" />
Expand All @@ -43,6 +44,7 @@
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.dll" />
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.exe" />
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.exe.config" />
<ProgramFiles Include="$(SolutionDir)\Switcheroo\bin\Release\*.txt" />
<ProgramFiles Include="$(SolutionDir)\LICENSE.txt" />
</ItemGroup>
<Copy SourceFiles="@(ProgramFiles)" DestinationFolder="ProgramFiles" />
Expand Down
2 changes: 1 addition & 1 deletion Installer/Installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Name: startupfolder; Description: Startup with Windows
Source: {#MyAppPath}\switcheroo.exe; DestDir: {app}; Flags: ignoreversion
Source: {#MyAppPath}\*.dll; DestDir: {app}; Flags: ignoreversion
Source: {#MyAppPath}\switcheroo.exe.config; DestDir: {app}; Flags: ignoreversion
Source: {#MyAppPath}\LICENSE.txt; DestDir: {app}; Flags: ignoreversion
Source: {#MyAppPath}\*.txt; DestDir: {app}; Flags: ignoreversion

[Icons]
Name: {group}\{#MyAppName}; Filename: {app}\{#MyAppExeName}
Expand Down
4 changes: 2 additions & 2 deletions ManagedWinapi/ManagedWinapi.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -15,7 +15,7 @@
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkProfile />
Expand Down
26 changes: 16 additions & 10 deletions Switcheroo/Switcheroo.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Switcheroo</RootNamespace>
<AssemblyName>switcheroo</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
Expand All @@ -21,6 +21,8 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand All @@ -35,8 +37,6 @@
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -214,11 +214,17 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!--<Import Project="$(ProgramFiles)\MSBuild\Microsoft\StyleCop\v4.3\Microsoft.StyleCop.targets" />-->
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<Target Name="CopyFiles" BeforeTargets="Build">
<ItemGroup>
<SourceFiles Include="./*.txt"/>
</ItemGroup>
<Copy SourceFiles="@(SourceFiles)" DestinationFolder="$(TargetDir)"/>
</Target>
</Project>

0 comments on commit 2514799

Please sign in to comment.