Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

nugetify extensions #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@
*.vspscc
.builds
*.dotCover
obj
bin
packages/*

Tools/nuget.exe
107 changes: 82 additions & 25 deletions Extension/MySql.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
Expand Down Expand Up @@ -95,21 +95,45 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseGAC|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>437256192</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>bin\Release\PhpNetMySql.xml</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=2771987119c16a03, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\MySql.Data\MySql.Data.dll</HintPath>
<Reference Include="MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<HintPath>..\packages\MySql.Data.6.9.8\lib\net40\MySql.Data.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PhpNetClassLibrary, Version=0.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="PhpNetClassLibrary, Version=4.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb, processorArchitecture=MSIL">
<HintPath>..\packages\PhpNet.ClassLibrary.0.1\lib\net40\PhpNetClassLibrary.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PhpNetCore, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="PhpNetCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71, processorArchitecture=MSIL">
<HintPath>..\packages\PhpNet.Core.0.1\lib\net40\PhpNetCore.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PhpNetCore.Parsers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PhpNetCore.Parsers\v4.0_4.0.0.0__0a8e8c4c76728c71\PhpNetCore.Parsers.dll</HintPath>
<HintPath>..\packages\PhpNet.Core.Parsers.0.1\lib\net40\PhpNetCore.Parsers.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System">
<Name>System</Name>
Expand Down Expand Up @@ -146,7 +170,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="Extensions.snk" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
Expand Down Expand Up @@ -176,22 +202,53 @@
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

<UsingTask TaskName="DownloadFile" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" Condition=" '$(OS)' == 'Windows_NT' ">
<ParameterGroup>
<Address ParameterType="System.String" Required="true"/>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System" />
<Code Type="Fragment" Language="cs">
<![CDATA[
new System.Net.WebClient().DownloadFile(Address, OutputFilename);
]]>
</Code>
</Task>
</UsingTask>

<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>"$(SolutionDir)Tools\gacutil" /u $(TargetName) 1&gt;nul
<DocumentationFile>$(OutputPath)$(TargetName).xml</DocumentationFile>
<ToolsDir Condition=" '$(ToolsDir)'=='' ">$(SolutionDir)Tools</ToolsDir>
<NuGetExeDir Condition=" '$(NuGetExeDir)'=='' ">$(ToolsDir)</NuGetExeDir>
<NuGetDownloadAddress Condition=" '$(NuGetDownloadAddress)'=='' ">http://nuget.org/nuget.exe</NuGetDownloadAddress>
<NuGetExe Condition=" '$(NuGetExe)'=='' ">$(NuGetExeDir)\nuget.exe</NuGetExe>
<GacUtilExe Condition=" '$(GacUtilExe)'=='' ">$(ToolsDir)\gacutil</GacUtilExe>
<NuGetCommand Condition=" '$(NuGetCommand)'=='' ">"$(NuGetExe)"</NuGetCommand>
<GacUtilCommand Condition=" '$(GacUtilCommand)'=='' ">"$(GacUtilExe)"</GacUtilCommand>
</PropertyGroup>

"$(SolutionDir)Tools\gacutil" -f -i "$(ProjectDir)\..\MySql.Data\MySql.Data.dll"
"$(SolutionDir)Tools\gacutil" -f -i "$(TargetPath)"
<Target Name="DownloadNuGet">
<MakeDir Directories="$(NuGetExeDir)" Condition=" !Exists('$(NuGetExeDir)') " />
<DownloadFile Address="$(NuGetDownloadAddress)" OutputFilename="$(NuGetExe)" Condition=" '$(OS)' == 'Windows_NT' AND !Exists('$(NuGetExe)')" />
<Exec Command="wget $(NuGetDownloadAddress) -O $(NuGetExe)" Condition=" '$(OS)' != 'Windows_NT' AND !Exists('$(NuGetExe)') " />
</Target>

if $(ConfigurationName) == Release (
xcopy /q /y "$(ProjectDir)..\mysql.data\MySql.Data.dll" "$(SolutionDir)Deployment\Bin" 1&gt;nul
xcopy /q /y "$(TargetDir)$(TargetName).*" "$(SolutionDir)Deployment\Bin" 1&gt;nul
)
<Target Name="RestorePackages" DependsOnTargets="DownloadNuGet">
<Exec Command="$(NuGetCommand) restore &quot;$(MSBuildThisFileDirectory)..\MySql.sln&quot;"/>
</Target>

if $(ConfigurationName) == Debug (
xcopy /q /y "$(ProjectDir)..\mysql.data\MySql.Data.dll" "$(SolutionDir)Deployment\Debug" 1&gt;nul
xcopy /q /y "$(TargetDir)$(TargetName).*" "$(SolutionDir)Deployment\Debug" 1&gt;nul
)</PostBuildEvent>
</PropertyGroup>
</Project>
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'ReleaseGAC' ">
<Exec Command="$(GacUtilCommand) /u &quot;$(TargetName)&quot;" />
<Exec Command="$(GacUtilCommand) -f -i &quot;$(TargetPath)&quot;" />
</Target>

<Target Name="AfterBuild" DependsOnTargets="DownloadNuGet" Condition=" '$(Configuration)' == 'Release' ">
<PropertyGroup>
<OutputNugetPath>$(OutputPath)..\$(Configuration)-NuGet</OutputNugetPath>
</PropertyGroup>
<MakeDir Directories="$(OutputNugetPath)" />
<Exec Command="$(NuGetCommand) pack &quot;$(MSBuildProjectFullPath)&quot; -IncludeReferencedProjects -Symbols -Prop Configuration=$(Configuration) -OutputDirectory &quot;$(OutputNugetPath)&quot;"></Exec>
</Target>
</Project>
24 changes: 24 additions & 0 deletions Extension/MySql.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>PhpNet.Extension.MySql</id>
<version>0.1</version>
<title>Phalanger MySql Extension</title>
<authors>The Phalanger Project</authors>
<owners>The Phalanger Project</owners>
<licenseUrl>https://raw.githubusercontent.com/DEVSENSE/PhalangerMySql/master/LICENSE.txt</licenseUrl>
<projectUrl>https://github.com/DEVSENSE/PhalangerMySql</projectUrl>
<iconUrl>http://download-codeplex.sec.s-msft.com/Download?ProjectName=Phalanger&amp;DownloadId=240061</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2016</copyright>
<tags>PHP Phalanger Extension MySql Database</tags>
<dependencies>
<dependency id="MySql.Data" version="6.9.8" />
<dependency id="PhpNet.Core" />
<dependency id="PhpNet.Core.Parsers" />
<dependency id="PhpNet.ClassLibrary" />
</dependencies>
</metadata>
</package>
9 changes: 9 additions & 0 deletions Extension/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data>
</configuration>
7 changes: 7 additions & 0 deletions Extension/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MySql.Data" version="6.9.8" targetFramework="net40" />
<package id="PhpNet.ClassLibrary" version="0.1" targetFramework="net40" />
<package id="PhpNet.Core" version="0.1" targetFramework="net40" />
<package id="PhpNet.Core.Parsers" version="0.1" targetFramework="net40" />
</packages>
Binary file removed MySql.Data/MySql.Data.dll
Binary file not shown.
1 change: 0 additions & 1 deletion MySql.Data/README.txt

This file was deleted.

24 changes: 9 additions & 15 deletions MySql.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySql", "Extension\MySql.csproj", "{D3C83649-9B7F-46BF-9984-FFDE06C7C2DD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDOMySQL", "PDOMySQL\PDOMySQL.csproj", "{97CEC9F9-ED05-4093-BF1E-01FB75D7014C}"
Expand All @@ -9,35 +11,27 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documents", "Documents", "{
ProjectSection(SolutionItems) = preProject
LICENSE.txt = LICENSE.txt
README.txt = README.txt
MySql.Data\README.txt = MySql.Data\README.txt
EndProjectSection
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://team.corp.devsense.com:8443/tfs/projects
SccLocalPath0 = .
SccProjectUniqueName1 = Extension\\MySql.csproj
SccProjectName1 = Extension
SccLocalPath1 = Extension
SccProjectUniqueName2 = PDOMySQL\\PDOMySQL.csproj
SccProjectName2 = PDOMySQL
SccLocalPath2 = PDOMySQL
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
ReleaseGAC|Any CPU = ReleaseGAC|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D3C83649-9B7F-46BF-9984-FFDE06C7C2DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D3C83649-9B7F-46BF-9984-FFDE06C7C2DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D3C83649-9B7F-46BF-9984-FFDE06C7C2DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D3C83649-9B7F-46BF-9984-FFDE06C7C2DD}.Release|Any CPU.Build.0 = Release|Any CPU
{D3C83649-9B7F-46BF-9984-FFDE06C7C2DD}.ReleaseGAC|Any CPU.ActiveCfg = ReleaseGAC|Any CPU
{D3C83649-9B7F-46BF-9984-FFDE06C7C2DD}.ReleaseGAC|Any CPU.Build.0 = ReleaseGAC|Any CPU
{97CEC9F9-ED05-4093-BF1E-01FB75D7014C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97CEC9F9-ED05-4093-BF1E-01FB75D7014C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97CEC9F9-ED05-4093-BF1E-01FB75D7014C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97CEC9F9-ED05-4093-BF1E-01FB75D7014C}.Release|Any CPU.Build.0 = Release|Any CPU
{97CEC9F9-ED05-4093-BF1E-01FB75D7014C}.ReleaseGAC|Any CPU.ActiveCfg = ReleaseGAC|Any CPU
{97CEC9F9-ED05-4093-BF1E-01FB75D7014C}.ReleaseGAC|Any CPU.Build.0 = ReleaseGAC|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
94 changes: 67 additions & 27 deletions PDOMySQL/PDOMySQL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,41 @@
<WarningLevel>4</WarningLevel>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseGAC|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>..\Extension\Extensions.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="MySql.Data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\MySql\MySql.Data\MySql.Data.dll</HintPath>
<Reference Include="MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<HintPath>..\packages\MySql.Data.6.9.8\lib\net40\MySql.Data.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PhpNetClassLibrary, Version=4.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PhpNetClassLibrary\v4.0_4.0.0.0__4af37afe3cde05fb\PhpNetClassLibrary.dll</HintPath>
<HintPath>..\packages\PhpNet.ClassLibrary.0.1\lib\net40\PhpNetClassLibrary.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PhpNetCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PhpNetCore\v4.0_4.0.0.0__0a8e8c4c76728c71\PhpNetCore.dll</HintPath>
<HintPath>..\packages\PhpNet.Core.0.1\lib\net40\PhpNetCore.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PhpNetCore.Parsers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0a8e8c4c76728c71, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PhpNetCore.Parsers\v4.0_4.0.0.0__0a8e8c4c76728c71\PhpNetCore.Parsers.dll</HintPath>
<HintPath>..\packages\PhpNet.Core.Parsers.0.1\lib\net40\PhpNetCore.Parsers.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="PhpNetPDO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2771987119c16a03, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Windows\Microsoft.NET\assembly\GAC_MSIL\PhpNetPDO\v4.0_4.0.0.0__2771987119c16a03\PhpNetPDO.dll</HintPath>
<HintPath>..\packages\PhpNet.Extension.PDO.0.1\lib\net40\PhpNetPDO.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -85,23 +93,55 @@
<Name>MySql</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<UsingTask TaskName="DownloadFile" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll" Condition=" '$(OS)' == 'Windows_NT' ">
<ParameterGroup>
<Address ParameterType="System.String" Required="true"/>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System" />
<Code Type="Fragment" Language="cs">
<![CDATA[
new System.Net.WebClient().DownloadFile(Address, OutputFilename);
]]>
</Code>
</Task>
</UsingTask>
<PropertyGroup>
<PostBuildEvent>"$(SolutionDir)Tools\gacutil" /u $(TargetName) 1&gt;nul
"$(SolutionDir)Tools\gacutil" -f -i "$(TargetPath)"

if $(ConfigurationName) == Release (
xcopy /q /y "$(TargetDir)$(TargetName).*" "$(SolutionDir)Deployment\bin" 1&gt;nul
)
if $(ConfigurationName) == Debug (
xcopy /q /y "$(TargetDir)$(TargetName).*" "$(SolutionDir)Deployment\Debug" 1&gt;nul
)</PostBuildEvent>
<ToolsDir Condition=" '$(ToolsDir)'=='' ">$(SolutionDir)Tools</ToolsDir>
<NuGetExeDir Condition=" '$(NuGetExeDir)'=='' ">$(ToolsDir)</NuGetExeDir>
<NuGetDownloadAddress Condition=" '$(NuGetDownloadAddress)'=='' ">http://nuget.org/nuget.exe</NuGetDownloadAddress>
<NuGetExe Condition=" '$(NuGetExe)'=='' ">$(NuGetExeDir)/nuget.exe</NuGetExe>
<GacUtilExe Condition=" '$(GacUtilExe)'=='' ">$(ToolsDir)/gacutil</GacUtilExe>
<NuGetCommand Condition=" '$(NuGetCommand)'=='' ">"$(NuGetExe)"</NuGetCommand>
<GacUtilCommand Condition=" '$(GacUtilCommand)'=='' ">"$(GacUtilExe)"</GacUtilCommand>
</PropertyGroup>
<!-- 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="DownloadNuGet">
<MakeDir Directories="$(NuGetExeDir)" Condition=" !Exists('$(NuGetExeDir)') " />
<DownloadFile Address="$(NuGetDownloadAddress)" OutputFilename="$(NuGetExe)" Condition=" '$(OS)' == 'Windows_NT' AND !Exists('$(NuGetExe)')" />
<Exec Command="wget $(NuGetDownloadAddress) -O $(NuGetExe)" Condition=" '$(OS)' != 'Windows_NT' AND !Exists('$(NuGetExe)') " />
</Target>
<Target Name="RestorePackages" DependsOnTargets="DownloadNuGet">
<Exec Command="$(NuGetCommand) restore &quot;$(MSBuildThisFileDirectory)..\MySql.sln&quot;"/>
</Target>

<!--<Target Name="Build" DependsOnTargets="BeforeBuild" Condition="'$(OS)' == 'Unix'" />
<Target Name="Rebuild" DependsOnTargets="RestorePackages" Condition="'$(OS)' == 'Unix'" />-->

<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'ReleaseGAC' ">
<Exec Command="$(GacUtilCommand) /u $(TargetName)"/>
<Exec Command="$(GacUtilCommand) -f -i &quot;$(TargetPath)&quot;"/>
</Target>
<Target Name="AfterBuild" DependsOnTargets="DownloadNuGet" Condition=" '$(Configuration)' == 'Release' ">
<PropertyGroup>
<OutputNugetPath>$(OutputPath)..\Release-NuGet</OutputNugetPath>
</PropertyGroup>
<MakeDir Directories="$(OutputNugetPath)" />
<Exec Command="$(NuGetCommand) pack &quot;$(MSBuildProjectFullPath)&quot; -IncludeReferencedProjects -Symbols -Prop Configuration=Release -OutputDirectory &quot;$(OutputNugetPath)&quot;"></Exec>
</Target>
</Project>
Loading