Skip to content

Commit

Permalink
Added DllExport files to NppGist.csproj.
Browse files Browse the repository at this point in the history
  • Loading branch information
KvanTTT committed Nov 4, 2017
1 parent bb0f541 commit 7142c06
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 11 deletions.
5 changes: 4 additions & 1 deletion NppGist.Tests/NppGist.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<PlatformTarget>x86</PlatformTarget>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand Down Expand Up @@ -63,7 +64,9 @@
<None Include="Data\gists.json" />
<None Include="Data\user-full.json" />
<None Include="Data\user.json" />
<None Include="packages.config" />
<None Include="packages.config">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NppGist\NppGist.csproj">
Expand Down
6 changes: 6 additions & 0 deletions NppGist/DllExport/DllExportAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,28 @@ partial class DllExportAttribute : Attribute
public DllExportAttribute()
{
}

public DllExportAttribute(string exportName)
: this(exportName, CallingConvention.StdCall)
{
}

public DllExportAttribute(string exportName, CallingConvention callingConvention)
{
ExportName = exportName;
CallingConvention = callingConvention;
}

CallingConvention _callingConvention;

public CallingConvention CallingConvention
{
get { return _callingConvention; }
set { _callingConvention = value; }
}

string _exportName;

public string ExportName
{
get { return _exportName; }
Expand Down
46 changes: 36 additions & 10 deletions NppGist/Forms/frmAbout.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions NppGist/Forms/frmAbout.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;

namespace NppGist.Forms
Expand All @@ -8,6 +9,7 @@ public partial class frmAbout : Form
public frmAbout()
{
InitializeComponent();
lblName.Text = "NppGist " + Assembly.GetExecutingAssembly().GetName().Version;
}

private void linkSource_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
Expand Down
7 changes: 7 additions & 0 deletions NppGist/NppGist.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<ErrorReport>prompt</ErrorReport>
<PlatformTarget>x86</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
Expand Down Expand Up @@ -173,6 +174,7 @@
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="DllExport\NppPlugin.DllExport.targets" />
<None Include="packages.config" />
<None Include="Resources\refresh.png" />
</ItemGroup>
Expand All @@ -188,6 +190,11 @@
<ItemGroup>
<EmbeddedResource Include="ServiceStack.Text.dll" />
</ItemGroup>
<ItemGroup>
<Content Include="DllExport\Mono.Cecil.dll" />
<Content Include="DllExport\NppPlugin.DllExport.dll" />
<Content Include="DllExport\NppPlugin.DllExport.MSBuild.dll" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildProjectDirectory)\DllExport\NppPlugin.DllExport.targets" />
<PropertyGroup>
Expand Down

0 comments on commit 7142c06

Please sign in to comment.