forked from gluck/ikvm
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET Standard support #5
Open
timotei
wants to merge
20
commits into
v0.46
Choose a base branch
from
v0.46-netstandard
base: v0.46
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
66990d4
Fix compilation on newer .NET versions
timotei ba107da
Update .csproj and .sln for latest VS 2017
timotei 2a4959c
Use .NET 4.0
timotei e68acf7
Disable PermissionSet-related code on NETSTANDARD
timotei f4106fe
Disable WindowsPreferences on NETSTANDARD
timotei c286ed9
Build IKVM.Runtime first pass with netstandard 2.0
timotei a075aba
Remove AWT build for now
timotei 224659a
Complete the Reflection build
timotei 935a09a
Compile ikvmc & ikvmstub with .NET 4.6.1
timotei 5963f50
Build openjdk against .NET standard libs
timotei bcdc1b5
Compile MappedByteBuffer on .NET Standard
timotei 3445e6b
Compile WindowsPreferences on .NET Standard
timotei 86e1239
Update the IKVM.Runtime first pass run
timotei 17ca836
Allow running depcheck against .NET Standard-related libs
timotei ee24c18
Get forwarded status when finding type
timotei 01c64a6
Generate .NET-standard compatible libraries
timotei 15e900f
Complete the IKVM.Runtime (& JNI) build for .NET Standard
timotei f4f33cf
Remove AllowPartiallyTrustedCallersAttribute for now, it breaks with …
timotei e026c8b
Compile AWT & Swing for .NET Standard
timotei 38de383
Remove unneeded return type
timotei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,31 @@ | ||
.vs/ | ||
.idea/ | ||
openjdk/**/*.class | ||
/classpath/**/*.class | ||
bin/ | ||
openjdk/*.dll | ||
packages/ | ||
bin/ | ||
obj/ | ||
/CommonAssemblyInfo.cs | ||
/awt/AssemblyInfo.cs | ||
/openjdk/*.jar | ||
*.user | ||
/tools/*.exe | ||
/jvm/jvm_h.il | ||
/openjdk/AssemblyInfo.java | ||
*.gen.txt | ||
/openjdk/tools.gen.rsp | ||
/openjdk/vfs.zip | ||
/openjdk/allsources.gen.lst | ||
/openjdk/java/lang/PropertyConstants.java | ||
/runtime/AssemblyInfo.cs | ||
/runtime/JniAssemblyInfo.cs | ||
/openjdk/resources.zip | ||
/runtime/IKVM.Runtime.dll | ||
/runtime/IKVM.OpenJDK.Core.dll | ||
/lib/ikvm-api.jar | ||
/tools/pubkey.txt | ||
/bin-x86/JVM.DLL | ||
/bin-x64/JVM.DLL | ||
/runtime/IKVM.Runtime.JNI.dll |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration> |
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,159 +1,78 @@ | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<ProjectType>Local</ProjectType> | ||
<ProductVersion>9.0.30729</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{E00A0FA2-1FD7-4DD9-8C06-7202CE366102}</ProjectGuid> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ApplicationIcon> | ||
</ApplicationIcon> | ||
<AssemblyKeyContainerName> | ||
</AssemblyKeyContainerName> | ||
<ApplicationIcon /> | ||
<AssemblyKeyContainerName /> | ||
<AssemblyName>IKVM.AWT.WinForms</AssemblyName> | ||
<AssemblyOriginatorKeyFile> | ||
</AssemblyOriginatorKeyFile> | ||
<DefaultClientScript>JScript</DefaultClientScript> | ||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> | ||
<DefaultTargetSchema>IE50</DefaultTargetSchema> | ||
<DelaySign>false</DelaySign> | ||
<OutputType>Library</OutputType> | ||
<AssemblyOriginatorKeyFile /> | ||
<RootNamespace>awt</RootNamespace> | ||
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> | ||
<StartupObject> | ||
</StartupObject> | ||
<FileUpgradeFlags> | ||
</FileUpgradeFlags> | ||
<UpgradeBackupLocation> | ||
</UpgradeBackupLocation> | ||
<OldToolsVersion>2.0</OldToolsVersion> | ||
<IsWebBootstrapper>false</IsWebBootstrapper> | ||
<PublishUrl>publish\</PublishUrl> | ||
<Install>true</Install> | ||
<InstallFrom>Disk</InstallFrom> | ||
<UpdateEnabled>false</UpdateEnabled> | ||
<UpdateMode>Foreground</UpdateMode> | ||
<UpdateInterval>7</UpdateInterval> | ||
<UpdateIntervalUnits>Days</UpdateIntervalUnits> | ||
<UpdatePeriodically>false</UpdatePeriodically> | ||
<UpdateRequired>false</UpdateRequired> | ||
<MapFileExtensions>true</MapFileExtensions> | ||
<ApplicationRevision>0</ApplicationRevision> | ||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> | ||
<UseApplicationTrust>false</UseApplicationTrust> | ||
<BootstrapperEnabled>true</BootstrapperEnabled> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<RemoveIntegerChecks>false</RemoveIntegerChecks> | ||
<BaseAddress>285212672</BaseAddress> | ||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> | ||
<ConfigurationOverrideFile> | ||
</ConfigurationOverrideFile> | ||
<DefineConstants>TRACE;DEBUG;WHIDBEY</DefineConstants> | ||
<DocumentationFile> | ||
</DocumentationFile> | ||
<DebugSymbols>true</DebugSymbols> | ||
<FileAlignment>4096</FileAlignment> | ||
<NoStdLib>false</NoStdLib> | ||
<NoWarn>672,612</NoWarn> | ||
<Optimize>false</Optimize> | ||
<DocumentationFile /> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
<RegisterForComInterop>false</RegisterForComInterop> | ||
<RemoveIntegerChecks>false</RemoveIntegerChecks> | ||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> | ||
<WarningLevel>4</WarningLevel> | ||
<NoStdLib>false</NoStdLib> | ||
<ConfigurationOverrideFile /> | ||
<FileAlignment>4096</FileAlignment> | ||
<DefineConstants>TRACE;DEBUG;WHIDBEY</DefineConstants> | ||
<DebugType>full</DebugType> | ||
<ErrorReport>prompt</ErrorReport> | ||
<PreBuildEvent /> | ||
<PostBuildEvent /> | ||
<Configurations>Debug;Release;Debug FIRST PASS</Configurations> | ||
<Platforms>AnyCPU</Platforms> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<PreBuildEvent /> | ||
<PostBuildEvent /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug FIRST PASS' "> | ||
<DebugSymbols Condition=" '$(DebugSymbols)' == '' ">true</DebugSymbols> | ||
<Optimize Condition=" '$(Optimize)' == '' ">false</Optimize> | ||
<DefineConstants>TRACE;DEBUG;FIRST_PASS</DefineConstants> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="IKVM.OpenJDK.Core, Version=0.39.3280.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\bin\IKVM.OpenJDK.Core.dll</HintPath> | ||
<SpecificVersion>False</SpecificVersion> | ||
</Reference> | ||
<Reference Include="IKVM.OpenJDK.Media, Version=0.41.3440.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\bin\IKVM.OpenJDK.Media.dll</HintPath> | ||
<SpecificVersion>False</SpecificVersion> | ||
</Reference> | ||
<Reference Include="IKVM.OpenJDK.Misc, Version=0.39.3280.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\bin\IKVM.OpenJDK.Misc.dll</HintPath> | ||
<SpecificVersion>False</SpecificVersion> | ||
</Reference> | ||
<Reference Include="IKVM.OpenJDK.SwingAWT, Version=0.39.3280.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\bin\IKVM.OpenJDK.SwingAWT.dll</HintPath> | ||
<SpecificVersion>False</SpecificVersion> | ||
</Reference> | ||
<Reference Include="IKVM.OpenJDK.Text, Version=0.39.3280.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\bin\IKVM.OpenJDK.Text.dll</HintPath> | ||
<SpecificVersion>False</SpecificVersion> | ||
</Reference> | ||
<Reference Include="System"> | ||
<Name>System</Name> | ||
</Reference> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Drawing"> | ||
<Name>System.Drawing</Name> | ||
</Reference> | ||
<Reference Include="System.Windows.Forms"> | ||
<Name>System.Windows.Forms</Name> | ||
<Reference Include="IKVM.Runtime, Version=0.47.0.2, Culture=neutral, PublicKeyToken=null"> | ||
<HintPath>..\bin\IKVM.Runtime.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\CommonAssemblyInfo.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="AssemblyInfo.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="composite.cs" /> | ||
<Compile Include="converter.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="fonts-0.95.cs" /> | ||
<Compile Include="graphics.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="images.cs"> | ||
<Compile Include="..\CommonAssemblyInfo.cs" > | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="native.cs" /> | ||
<Compile Include="printing.cs" /> | ||
<Compile Include="robot.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="ShellApi.cs" /> | ||
<Compile Include="toolkit-0.95.cs"> | ||
<Compile Update="toolkit-0.95.cs"> | ||
<SubType>Form</SubType> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\runtime\IKVM.Runtime.8.csproj"> | ||
<Project>{F5C7B588-0403-4AF2-A4DE-5697DE21BC2C}</Project> | ||
<Name>IKVM.Runtime.8</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\runtime\IKVM.Runtime.8.csproj" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName> | ||
<Install>true</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> | ||
<Visible>False</Visible> | ||
<ProductName>.NET Framework 3.5</ProductName> | ||
<Install>false</Install> | ||
</BootstrapperPackage> | ||
<PackageReference Include="System.Drawing.Common" Version="4.6.0" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PreBuildEvent> | ||
</PreBuildEvent> | ||
<PostBuildEvent> | ||
</PostBuildEvent> | ||
</PropertyGroup> | ||
</Project> | ||
</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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now when you use new csproj format, I suggest to use PackageReference instead of direct storing nuget packages folder in git.