Skip to content

Commit fe1f83e

Browse files
committed
SBL for .NET Standard (1.3 and up)
1 parent 9cc9930 commit fe1f83e

File tree

5 files changed

+72
-5
lines changed

5 files changed

+72
-5
lines changed

Source/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public struct SwiftString /*: Streamable*/ {
5757
}*/
5858
#endif
5959

60-
public init(_ object: AnyObject) {
60+
public init(_ object: Object) {
6161
if let o = object as? ICustomStringConvertible {
6262
nativeStringValue = o.description
6363
} else {

Source/String_Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
return NativeString(count: 1, repeatedValue: c)
2222
}
2323

24-
public init(_ object: AnyObject) {
24+
public init(_ object: Object) {
2525
if let o = object as? ICustomStringConvertible {
2626
return o.description
2727
} else {
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<ProductVersion>3.5</ProductVersion>
5+
<RootNamespace>Swift</RootNamespace>
6+
<ProjectGuid>{CDDEBE6E-6B6B-4EF7-B2E1-57239C443426}</ProjectGuid>
7+
<OutputType>Library</OutputType>
8+
<AssemblyName>Swift</AssemblyName>
9+
<AllowGlobals>False</AllowGlobals>
10+
<AllowLegacyWith>False</AllowLegacyWith>
11+
<AllowLegacyOutParams>False</AllowLegacyOutParams>
12+
<AllowLegacyCreate>False</AllowLegacyCreate>
13+
<AllowUnsafeCode>False</AllowUnsafeCode>
14+
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
15+
<DefaultUses>System.Collections.Generic;System.Linq</DefaultUses>
16+
<TargetFramework>.NETStandard1.3</TargetFramework>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
19+
<Optimize>false</Optimize>
20+
<OutputPath>.\bin\Debug</OutputPath>
21+
<DefineConstants>DEBUG;TRACE;</DefineConstants>
22+
<GeneratePDB>True</GeneratePDB>
23+
<GenerateMDB>True</GenerateMDB>
24+
<EnableAsserts>True</EnableAsserts>
25+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
26+
<CaptureConsoleOutput>False</CaptureConsoleOutput>
27+
<StartMode>Project</StartMode>
28+
<RegisterForComInterop>False</RegisterForComInterop>
29+
<CpuType>anycpu</CpuType>
30+
<RuntimeVersion>v25</RuntimeVersion>
31+
<XmlDoc>False</XmlDoc>
32+
<XmlDocWarningLevel>WarningOnPublicMembers</XmlDocWarningLevel>
33+
<EnableUnmanagedDebugging>False</EnableUnmanagedDebugging>
34+
<WarnOnCaseMismatch>True</WarnOnCaseMismatch>
35+
</PropertyGroup>
36+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
37+
<Optimize>true</Optimize>
38+
<OutputPath>.\bin\Release</OutputPath>
39+
<GeneratePDB>True</GeneratePDB>
40+
<GenerateMDB>True</GenerateMDB>
41+
<EnableAsserts>False</EnableAsserts>
42+
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
43+
<CaptureConsoleOutput>False</CaptureConsoleOutput>
44+
<StartMode>Project</StartMode>
45+
<RegisterForComInterop>False</RegisterForComInterop>
46+
<CpuType>anycpu</CpuType>
47+
<RuntimeVersion>v25</RuntimeVersion>
48+
<XmlDoc>False</XmlDoc>
49+
<XmlDocWarningLevel>WarningOnPublicMembers</XmlDocWarningLevel>
50+
<EnableUnmanagedDebugging>False</EnableUnmanagedDebugging>
51+
<WarnOnCaseMismatch>True</WarnOnCaseMismatch>
52+
<DefineConstants>SIGN</DefineConstants>
53+
</PropertyGroup>
54+
<ItemGroup>
55+
<Reference Include="Echoes">
56+
<Private>True</Private>
57+
</Reference>
58+
</ItemGroup>
59+
<ItemGroup>
60+
<Compile Include="__AssemblyInfo.swift" />
61+
</ItemGroup>
62+
<Import Project="$(MSBuildExtensionsPath)\RemObjects Software\Elements\RemObjects.Elements.Echoes.targets" />
63+
<Import Project="Swift.Shared.projitems" Label="Swift.Shared" />
64+
</Project>

Source/SwiftBaseLibrary.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Project("{656346D9-4656-40DA-A068-22D5425D4639}") = "Swift.Cooper", "Swift.Coope
55
EndProject
66
Project("{656346D9-4656-40DA-A068-22D5425D4639}") = "Swift.Echoes", "Swift.Echoes.elements", "{BAE82ECC-39A5-4A18-9CE1-EAC0653F6E0F}"
77
EndProject
8+
Project("{656346D9-4656-40DA-A068-22D5425D4639}") = "Swift.Echoes.Standard", "Swift.Echoes.Standard.elements", "{CDDEBE6E-6B6B-4EF7-B2E1-57239C443426}"
9+
EndProject
810
Project("{656346D9-4656-40DA-A068-22D5425D4639}") = "Swift.Island.Android", "Swift.Island.Android.elements", "{FA456B74-3E30-45ED-91B2-6BB7A104F836}"
911
EndProject
1012
Project("{656346D9-4656-40DA-A068-22D5425D4639}") = "Swift.Island.Darwin.iOS", "Swift.Island.Darwin.iOS.elements", "{6F87C50F-069A-4E56-9B2E-044CBB68CC83}"
@@ -47,6 +49,10 @@ Global
4749
{BAE82ECC-39A5-4A18-9CE1-EAC0653F6E0F}.Debug|AnyCPU.Build.0 = Debug|AnyCPU
4850
{BAE82ECC-39A5-4A18-9CE1-EAC0653F6E0F}.Release|AnyCPU.ActiveCfg = Release|AnyCPU
4951
{BAE82ECC-39A5-4A18-9CE1-EAC0653F6E0F}.Release|AnyCPU.Build.0 = Release|AnyCPU
52+
{CDDEBE6E-6B6B-4EF7-B2E1-57239C443426}.Debug|AnyCPU.ActiveCfg = Debug|AnyCPU
53+
{CDDEBE6E-6B6B-4EF7-B2E1-57239C443426}.Debug|AnyCPU.Build.0 = Debug|AnyCPU
54+
{CDDEBE6E-6B6B-4EF7-B2E1-57239C443426}.Release|AnyCPU.ActiveCfg = Release|AnyCPU
55+
{CDDEBE6E-6B6B-4EF7-B2E1-57239C443426}.Release|AnyCPU.Build.0 = Release|AnyCPU
5056
{FA456B74-3E30-45ED-91B2-6BB7A104F836}.Debug|AnyCPU.ActiveCfg = Debug|AnyCPU
5157
{FA456B74-3E30-45ED-91B2-6BB7A104F836}.Debug|AnyCPU.Build.0 = Debug|AnyCPU
5258
{FA456B74-3E30-45ED-91B2-6BB7A104F836}.Release|AnyCPU.ActiveCfg = Release|AnyCPU

Source/__AssemblyInfo.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ import System.Runtime.InteropServices
1919
// COM, set the ComVisible attribute to true on that type.
2020
@assembly:ComVisible(false)
2121

22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
@assembly:Guid("BAE82ECC-39A5-4A18-9CE1-EAC0653F6E0F")
24-
2522
// Version information for an assembly consists of the following four values:
2623
//
2724
// Major Version

0 commit comments

Comments
 (0)