Skip to content

Commit 8906fe2

Browse files
Added EmbeddedLibraries project
1 parent 62264fd commit 8906fe2

File tree

21 files changed

+968
-0
lines changed

21 files changed

+968
-0
lines changed

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmbeddedLibraries", "EmbeddedLibraries\EmbeddedLibraries.csproj", "{1ED7DE7D-6839-411A-9976-7D47FD4899B3}"
7+
ProjectSection(ProjectDependencies) = postProject
8+
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0} = {BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}
9+
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85} = {BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}
10+
EndProjectSection
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Library1", "Library1\Library1.csproj", "{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Library2", "Library2\Library2.csproj", "{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}"
15+
EndProject
16+
Global
17+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18+
Debug|Any CPU = Debug|Any CPU
19+
Release|Any CPU = Release|Any CPU
20+
EndGlobalSection
21+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
22+
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Release|Any CPU.Build.0 = Release|Any CPU
30+
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31+
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
32+
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
33+
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Release|Any CPU.Build.0 = Release|Any CPU
34+
EndGlobalSection
35+
GlobalSection(SolutionProperties) = preSolution
36+
HideSolutionNode = FALSE
37+
EndGlobalSection
38+
EndGlobal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5+
</startup>
6+
</configuration>
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{1ED7DE7D-6839-411A-9976-7D47FD4899B3}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>EmbeddedLibraries</RootNamespace>
11+
<AssemblyName>EmbeddedLibraries</AssemblyName>
12+
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="System" />
37+
<Reference Include="System.Core" />
38+
<Reference Include="System.Xml.Linq" />
39+
<Reference Include="System.Data.DataSetExtensions" />
40+
<Reference Include="Microsoft.CSharp" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Deployment" />
43+
<Reference Include="System.Drawing" />
44+
<Reference Include="System.Net.Http" />
45+
<Reference Include="System.Windows.Forms" />
46+
<Reference Include="System.Xml" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<Compile Include="Form1.cs">
50+
<SubType>Form</SubType>
51+
</Compile>
52+
<Compile Include="Form1.Designer.cs">
53+
<DependentUpon>Form1.cs</DependentUpon>
54+
</Compile>
55+
<Compile Include="Program.cs" />
56+
<Compile Include="Properties\AssemblyInfo.cs" />
57+
<EmbeddedResource Include="Form1.resx">
58+
<DependentUpon>Form1.cs</DependentUpon>
59+
</EmbeddedResource>
60+
<EmbeddedResource Include="Properties\Resources.resx">
61+
<Generator>ResXFileCodeGenerator</Generator>
62+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
63+
<SubType>Designer</SubType>
64+
</EmbeddedResource>
65+
<Compile Include="Properties\Resources.Designer.cs">
66+
<AutoGen>True</AutoGen>
67+
<DependentUpon>Resources.resx</DependentUpon>
68+
<DesignTime>True</DesignTime>
69+
</Compile>
70+
<None Include="Properties\Settings.settings">
71+
<Generator>SettingsSingleFileGenerator</Generator>
72+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
73+
</None>
74+
<Compile Include="Properties\Settings.Designer.cs">
75+
<AutoGen>True</AutoGen>
76+
<DependentUpon>Settings.settings</DependentUpon>
77+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
78+
</Compile>
79+
</ItemGroup>
80+
<ItemGroup>
81+
<None Include="App.config" />
82+
</ItemGroup>
83+
<ItemGroup>
84+
<ProjectReference Include="..\Library1\Library1.csproj">
85+
<Project>{bb15a5c5-03ee-451d-b5b9-60ce83ba8b85}</Project>
86+
<Name>Library1</Name>
87+
<Private>False</Private>
88+
</ProjectReference>
89+
<ProjectReference Include="..\Library2\Library2.csproj">
90+
<Project>{be8ee3be-5284-439b-a0ae-d239d1ef9ee0}</Project>
91+
<Name>Library2</Name>
92+
<Private>False</Private>
93+
</ProjectReference>
94+
</ItemGroup>
95+
<ItemGroup>
96+
<EmbeddedResource Include="Resources\Library1.dll" />
97+
</ItemGroup>
98+
<ItemGroup>
99+
<EmbeddedResource Include="Resources\Library2.dll" />
100+
</ItemGroup>
101+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
102+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
103+
Other similar extension points exist, see Microsoft.Common.targets.
104+
<Target Name="BeforeBuild">
105+
</Target>
106+
<Target Name="AfterBuild">
107+
</Target>
108+
-->
109+
</Project>

Windows Desktop/EmbeddedLibraries/EmbeddedLibraries/Form1.Designer.cs

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows.Forms;
10+
11+
namespace EmbeddedLibraries
12+
{
13+
public partial class Form1 : Form
14+
{
15+
public Form1()
16+
{
17+
InitializeComponent();
18+
}
19+
20+
private void btnMethod1_Click(object sender, EventArgs e)
21+
{
22+
MessageBox.Show(new Library1.Lib1().Method());
23+
}
24+
25+
private void btnMethod2_Click(object sender, EventArgs e)
26+
{
27+
MessageBox.Show(new Library2.Lib2().Method());
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)