-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NuGet scripts and build targets updated
- Loading branch information
Showing
8 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="AfterBuild"> | ||
<GetAssemblyIdentity AssemblyFiles="$(OutputPath)$(AssemblyName).dll"> | ||
<Output TaskParameter="Assemblies" ItemName="OutputAssemblyInfo" /> | ||
</GetAssemblyIdentity> | ||
<Message Text="Info: %(OutputAssemblyInfo.Version)" /> | ||
</Target> | ||
<Target Name="Package"> | ||
<RemoveDir Directories="NuGet" /> | ||
<MakeDir Directories="NuGet" /> | ||
<Exec WorkingDirectory="$(BuildDir)" Command="NuGet.exe pack "$(ProjectName).csproj" -Verbosity detailed -Symbols -OutputDir "NuGet" -Version "%(OutputAssemblyInfo.Version)" -Properties "Configuration=$(Configuration)" -IncludeReferencedProjects" /> | ||
</Target> | ||
<Target Name="Publish"> | ||
<Exec WorkingDirectory="$(BuildDir)" Command="NuGet.exe push "NuGet\$(AssemblyName).%(OutputAssemblyInfo.Version).nupkg" -Verbosity detailed -Source "https://www.nuget.org/api/v2/package"" /> | ||
</Target> | ||
</Project> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | ||
<metadata> | ||
<id>WindowsFirewallHelper</id> | ||
<version>0.0</version> | ||
<id>$id$</id> | ||
<version>$version$</version> | ||
<title>Windows Firewall Helper (Win XP+)</title> | ||
<authors>Soroush Falahati</authors> | ||
<licenseUrl>https://github.com/falahati/WindowsFirewallHelper/blob/master/LICENSE</licenseUrl> | ||
<projectUrl>https://github.com/falahati/WindowsFirewallHelper</projectUrl> | ||
<iconUrl>https://github.com/falahati/WindowsFirewallHelper/blob/master/WindowsFirewallHelper/Icon.png?raw=true</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>A class library to manage the Windows Firewall as well as adding your program to the Windows Firewall Exception list. Supporting Windows XP+.</description> | ||
<description>$description$</description> | ||
<language>en-US</language> | ||
</metadata> | ||
<files> | ||
<file src="readme.txt" target="" /> | ||
<file src="bin/Release/Interop.NetFwTypeLib.dll" target="lib\net20" /> | ||
<file src="Icon.png" target="" /> | ||
<file src="WindowsFirewallHelper.targets" target="build" /> | ||
<file src=".\bin\Release\Interop.NetFwTypeLib.dll" target="build" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Target Name="AfterBuild"> | ||
<GetAssemblyIdentity AssemblyFiles="$(OutputPath)$(AssemblyName).dll"> | ||
<Output TaskParameter="Assemblies" ItemName="OutputAssemblyInfo" /> | ||
</GetAssemblyIdentity> | ||
<Message Text="Info: %(OutputAssemblyInfo.Version)" /> | ||
</Target> | ||
<Target Name="Package"> | ||
<RemoveDir Directories="NuGet" /> | ||
<MakeDir Directories="NuGet" /> | ||
<Exec WorkingDirectory="$(BuildDir)" Command="NuGet.exe pack -Verbosity detailed -Symbols -OutputDir "NuGet" -Version %(OutputAssemblyInfo.Version) -Properties "Configuration=$(Configuration)"" /> | ||
</Target> | ||
<Target Name="Publish"> | ||
<Exec WorkingDirectory="$(BuildDir)" Command="NuGet.exe push "NuGet\$(AssemblyName).%(OutputAssemblyInfo.Version).nupkg" -Verbosity detailed" /> | ||
</Target> | ||
<ItemGroup> | ||
<NativeLibs Include="$(MSBuildThisFileDirectory)*.dll" /> | ||
<None Include="@(NativeLibs)"> | ||
<Link>%(FileName)%(Extension)</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
$msbuild = join-path -path (Get-ItemProperty "HKLM:\software\Microsoft\MSBuild\ToolsVersions\14.0")."MSBuildToolsPath" -childpath "msbuild.exe" | ||
&$msbuild WindowsFirewallHelper\WindowsFirewallHelper.csproj /t:Build /t:Package /t:Publish /p:Configuration="Release" | ||
&$msbuild WindowsFirewallHelper\WindowsFirewallHelper.csproj /t:Build /t:Package /p:Configuration="Release" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
$msbuild = join-path -path (Get-ItemProperty "HKLM:\software\Microsoft\MSBuild\ToolsVersions\14.0")."MSBuildToolsPath" -childpath "msbuild.exe" | ||
&$msbuild WindowsFirewallHelper\WindowsFirewallHelper.csproj /t:Build /t:Package /t:Publish /p:Configuration="Release" |