Skip to content

Commit

Permalink
Portable Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano committed Jun 12, 2019
1 parent 12f84af commit 1dbb9a4
Show file tree
Hide file tree
Showing 41 changed files with 10,039 additions and 17 deletions.
293 changes: 293 additions & 0 deletions src/DesktopPet_Portable.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{87663C46-C416-4AED-971B-7A16624C1F1D}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DesktopPet</RootNamespace>
<AssemblyName>DesktopPet</AssemblyName>
<FileAlignment>512</FileAlignment>
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<TargetFrameworkProfile />
<ResolveNuGetPackages>false</ResolveNuGetPackages>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<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>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.htm</WebPage>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>false</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\build\DesktopPetPortable\bin\Debug\</OutputPath>
<IntermediateOutputPath>..\build\DesktopPet\obj\</IntermediateOutputPath>
<DefineConstants>TRACE;DEBUG;PORTABLE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\build\DesktopPetPortable\bin\Release\x86\</OutputPath>
<IntermediateOutputPath>..\build\DesktopPet\obj\</IntermediateOutputPath>
<DefineConstants>TRACE;PORTABLE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>..\build\DesktopPetPortable\bin\Release\eSheep.xml</DocumentationFile>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>E5C82D9887B1D997FCD9E686720A4263D2F75B7E</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>
</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<TargetZone>LocalIntranet</TargetZone>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<ManifestTimestampUrl>http://time.certum.pl/</ManifestTimestampUrl>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<DelaySign>false</DelaySign>
</PropertyGroup>
<PropertyGroup>
<StartupObject>
</StartupObject>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>..\build\DesktopPetPortable\bin\Debug\</OutputPath>
<IntermediateOutputPath>..\build\DesktopPet\obj\</IntermediateOutputPath>
<DefineConstants>TRACE;DEBUG;PORTABLE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>..\build\DesktopPetPortable\bin\Release\x64\</OutputPath>
<IntermediateOutputPath>..\build\DesktopPet\obj\</IntermediateOutputPath>
<DefineConstants>TRACE;PORTABLE</DefineConstants>
<DocumentationFile>..\build\DesktopPetPortable\bin\Release\eSheep.xml</DocumentationFile>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="NAudio, Version=1.8.5.0, Culture=neutral">
<HintPath>packages\NAudio.1.8.5\lib\net35\NAudio.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll</HintPath>
</Reference>
<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.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="Windows">
<HintPath>C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="dotNet\Animations.cs" />
<Compile Include="dotNet\ContextMenus.cs" />
<Compile Include="dotNet\EmbeddedAssembly.cs" />
<Compile Include="dotNet\ProcessIcon.cs" />
<Compile Include="LocalData\AnimationXML.cs" />
<Compile Include="Portable\AboutBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Portable\AboutBox.designer.cs">
<DependentUpon>AboutBox.cs</DependentUpon>
</Compile>
<Compile Include="Portable\FormHelp.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Portable\FormHelp.designer.cs">
<DependentUpon>FormHelp.cs</DependentUpon>
</Compile>
<Compile Include="Portable\FormOptions.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Portable\FormOptions.designer.cs">
<DependentUpon>FormOptions.cs</DependentUpon>
</Compile>
<Compile Include="Portable\Install.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Portable\Install.designer.cs">
<DependentUpon>Install.cs</DependentUpon>
</Compile>
<Compile Include="Portable\LocalData.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="dotNet\StartUp.cs" />
<Compile Include="dotNet\FormPet.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="dotNet\FormPet.Designer.cs">
<DependentUpon>FormPet.cs</DependentUpon>
</Compile>
<Compile Include="dotNet\FormDebug.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="dotNet\FormDebug.Designer.cs">
<DependentUpon>FormDebug.cs</DependentUpon>
</Compile>
<Compile Include="dotNet\Program.cs" />
<Compile Include="Properties\AssemblyInfoPortable.cs" />
<Compile Include="Properties\Settings1.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<Compile Include="Settings.cs" />
<Compile Include="Tools\XmlToDot.cs" />
<Compile Include="dotNet\Xml.cs" />
<EmbeddedResource Include="dotNet\FormPet.resx">
<DependentUpon>FormPet.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="dotNet\FormDebug.resx">
<DependentUpon>FormDebug.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Portable\AboutBox.resx">
<DependentUpon>AboutBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Portable\FormHelp.resx">
<DependentUpon>FormHelp.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Portable\FormOptions.resx">
<DependentUpon>FormOptions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Portable\Install.resx">
<DependentUpon>Install.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="app.config">
<SubType>Designer</SubType>
</None>
<None Include="dotNet\app.config" />
<None Include="packages.config" />
<None Include="Properties\app.manifest">
<SubType>Designer</SubType>
</None>
<None Include="Properties\Settings.settings">
<SubType>Designer</SubType>
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings1.Designer.cs</LastGenOutput>
</None>
<None Include="Resources\animations.xsd">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="esheep.png.ico" />
<Content Include="icon.ico" />
<Content Include="Images\exit.png" />
<Content Include="Images\help.png" />
<EmbeddedResource Include="Portable\NAudio.dll" />
<None Include="Images\install.png" />
<None Include="Images\option.png" />
<Content Include="Images\about.png" />
<Content Include="Images\esheep.png" />
<None Include="Resources\animations.xml">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<COMReference Include="stdole">
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
</PropertyGroup>
<!-- 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>
38 changes: 38 additions & 0 deletions src/DesktopPet_Portable.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 15
VisualStudioVersion = 15.0.28307.329
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DesktopPet_Portable", "DesktopPet_Portable.csproj", "{87663C46-C416-4AED-971B-7A16624C1F1D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{87663C46-C416-4AED-971B-7A16624C1F1D}.Debug|x64.ActiveCfg = Debug|x64
{87663C46-C416-4AED-971B-7A16624C1F1D}.Debug|x64.Build.0 = Debug|x64
{87663C46-C416-4AED-971B-7A16624C1F1D}.Debug|x86.ActiveCfg = Debug|x86
{87663C46-C416-4AED-971B-7A16624C1F1D}.Debug|x86.Build.0 = Debug|x86
{87663C46-C416-4AED-971B-7A16624C1F1D}.Release|x64.ActiveCfg = Release|x64
{87663C46-C416-4AED-971B-7A16624C1F1D}.Release|x64.Build.0 = Release|x64
{87663C46-C416-4AED-971B-7A16624C1F1D}.Release|x86.ActiveCfg = Release|x86
{87663C46-C416-4AED-971B-7A16624C1F1D}.Release|x86.Build.0 = Release|x86
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Debug|x64.ActiveCfg = Debug|Any CPU
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Debug|x64.Build.0 = Debug|Any CPU
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Debug|x86.ActiveCfg = Debug|Any CPU
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Debug|x86.Build.0 = Debug|Any CPU
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Release|x64.ActiveCfg = Release|Any CPU
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Release|x64.Build.0 = Release|Any CPU
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Release|x86.ActiveCfg = Release|Any CPU
{E95D998F-DF30-4C58-8FE7-EF10374D8AC5}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F3D4D82E-8E80-4B9C-9B7D-C4175B9C30FA}
EndGlobalSection
EndGlobal
12 changes: 6 additions & 6 deletions src/LocalData/Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ public void SetXml(string newXml, string folder)
Xml = newXml;

var buffer = Encoding.UTF8.GetBytes(newXml);
File.Delete(LocalFolder.Path + "\\animation.xml");
File.Delete(LocalFolder.Path + "\\animations.xml");

var f = File.Create(LocalFolder.Path + "\\animation.xml");
var f = File.Create(LocalFolder.Path + "\\animations.xml");
f.Write(buffer, 0, buffer.Length);
f.Close();

Expand All @@ -162,13 +162,13 @@ public string GetXml()
public void LoadXML()
{
var buffer = new Byte[1024 * 64];
if (!File.Exists(LocalFolder.Path + "\\animation.xml"))
if (!File.Exists(LocalFolder.Path + "\\animations.xml"))
{
var fs = File.Create(LocalFolder.Path + "\\animation.xml");
var fs = File.Create(LocalFolder.Path + "\\animations.xml");
fs.Close();
}
Xml = "";
var f = File.OpenRead(LocalFolder.Path + "\\animation.xml");
var f = File.OpenRead(LocalFolder.Path + "\\animations.xml");
var bytesRead = 0;
do
{
Expand Down Expand Up @@ -296,7 +296,7 @@ the renaming of files or directories. */
watcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite
| NotifyFilters.FileName | NotifyFilters.DirectoryName;
// Only watch text files.
watcher.Filter = "animation.xml";
watcher.Filter = "animations.xml";

// Add event handlers.
watcher.Changed += new FileSystemEventHandler(f);
Expand Down
Loading

0 comments on commit 1dbb9a4

Please sign in to comment.