Skip to content

Commit

Permalink
Added EmbeddedLibraries project
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-kulik committed Oct 29, 2015
1 parent 62264fd commit 8906fe2
Show file tree
Hide file tree
Showing 21 changed files with 968 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
38 changes: 38 additions & 0 deletions Windows Desktop/EmbeddedLibraries/EmbeddedLibraries.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EmbeddedLibraries", "EmbeddedLibraries\EmbeddedLibraries.csproj", "{1ED7DE7D-6839-411A-9976-7D47FD4899B3}"
ProjectSection(ProjectDependencies) = postProject
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0} = {BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85} = {BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Library1", "Library1\Library1.csproj", "{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Library2", "Library2\Library2.csproj", "{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1ED7DE7D-6839-411A-9976-7D47FD4899B3}.Release|Any CPU.Build.0 = Release|Any CPU
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BB15A5C5-03EE-451D-B5B9-60CE83BA8B85}.Release|Any CPU.Build.0 = Release|Any CPU
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BE8EE3BE-5284-439B-A0AE-D239D1EF9EE0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1ED7DE7D-6839-411A-9976-7D47FD4899B3}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>EmbeddedLibraries</RootNamespace>
<AssemblyName>EmbeddedLibraries</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Library1\Library1.csproj">
<Project>{bb15a5c5-03ee-451d-b5b9-60ce83ba8b85}</Project>
<Name>Library1</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\Library2\Library2.csproj">
<Project>{be8ee3be-5284-439b-a0ae-d239d1ef9ee0}</Project>
<Name>Library2</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Library1.dll" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Library2.dll" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

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

30 changes: 30 additions & 0 deletions Windows Desktop/EmbeddedLibraries/EmbeddedLibraries/Form1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace EmbeddedLibraries
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnMethod1_Click(object sender, EventArgs e)
{
MessageBox.Show(new Library1.Lib1().Method());
}

private void btnMethod2_Click(object sender, EventArgs e)
{
MessageBox.Show(new Library2.Lib2().Method());
}
}
}
Loading

0 comments on commit 8906fe2

Please sign in to comment.