Skip to content

Commit

Permalink
ReSharper 9.1 support fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
ulex committed Apr 28, 2015
1 parent 55e56cf commit 81730a6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 25 deletions.
8 changes: 1 addition & 7 deletions ZenSharp.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ Free and open source. More information on github.
<files>
<!--<file src="ZenSharp.Integration\Templates.ltg" target="ReSharper\vAny\plugins\"/>-->

<!-- 9.0+ -->
<file src="bin\Release\NLog.dll" target="$TargetDir$\"/>
<file src="bin\Release\Nemerle.dll" target="$TargetDir$\"/>
<file src="bin\Release\Nemerle.Peg.dll" target="$TargetDir$\"/>
<file src="bin\Release\ZenSharp.Core.dll" target="$TargetDir$\"/>
<file src="$IntegrationDll$" target="$TargetDir$\ZenSharp.Integration.dll"/>
<file src="bin\Release\Nlog.dll.deploy.nlog" target="$TargetDir$\Nlog.dll.nlog"/>
<file src="ZenSharp.dll" target="DotFiles\ZenSharp.dll"/>

</files>
</package>
1 change: 1 addition & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@echo off
SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework64\v4.0.30319
SET HostFullIdentifier=

if not defined version set /P VERSION=Version:

Expand Down
22 changes: 4 additions & 18 deletions buildNuPack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,21 @@ $version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo((gi .\bin\Releas
write-host "Version = $version"

$packages = @{
"ZenSharp" = @{
'PackageId' = 'ZenSharp';
'PackageVersion' = $version;
'DependencyId' = 'ReSharper';
'DependencyVersion' = '8.2';
'IntegrationDll' = 'bin\Release\ZenSharp.Integration.dll';
'TargetDir' = 'ReSharper\v8.2\plugins';
};
"ZenSharp_R9" = @{
"ZenSharp_R91" = @{
'PackageId' = 'Ulex.ZenSharp';
'PackageVersion' = $version;
'DependencyId' = 'Wave';
'DependencyVersion' = '[1.0]';
'IntegrationDll' = 'bin\Release.R90\ZenSharp.Integration.dll';
'TargetDir' = 'DotFiles\';
};
"ZenSharp_R91" = @{
'PackageId' = 'Ulex.ZenSharp91';
'PackageVersion' = $version;
'DependencyId' = 'wave';
'DependencyVersion' = '[2.0]';
'DependencyVersion' = '[2.0, 3.0)';
'IntegrationDll' = 'bin\Release.R91\ZenSharp.Integration.dll';
'TargetDir' = 'DotFiles\';
};
}
foreach ($p in $packages.Values){
$properties = [String]::Join(";" ,($p.GetEnumerator() | % {("{0}={1}" -f @($_.Key, $_.Value))}))
write-host $properties
.\ilmerge.bat $p['IntegrationDll']
nuget.exe pack $nuspec -Properties $properties
ri ZenSharp.dll
}

Move-Item *.nupkg .\bin\Release -Force
Expand Down
8 changes: 8 additions & 0 deletions ilmerge.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
SET INTEGRATIONDLL=%1
SET PATH=%PATH%;C:\Program Files (x86)\Microsoft\ILMerge
SET NETDIR=%WINDIR%\Microsoft.NET\Framework\v4.0.30319
set LIBS=/lib:bin\Release.R90 /lib:%NETDIR% /lib:%NETDIR%\WPF
SET ILMERGED=bin\Release\NLog.dll bin\Release\Nemerle.dll bin\Release\Nemerle.Peg.dll bin\Release\ZenSharp.Core.dll %INTEGRATIONDLL%
SET TARGETPL=/targetplatform:v4,%WINDIR%\Microsoft.NET\Framework\v4.0.30319
ilmerge.exe %LIBS% /out:ZenSharp.dll %TARGETPL% %ILMERGED%

0 comments on commit 81730a6

Please sign in to comment.