Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31702.278
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MultiLingualConfiguration", "MultiLingualConfiguration\MultiLingualConfiguration.csproj", "{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
DebugWithoutDeployment|Any CPU = DebugWithoutDeployment|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}.DebugWithoutDeployment|Any CPU.ActiveCfg = DebugWithoutDeployment|Any CPU
{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}.DebugWithoutDeployment|Any CPU.Build.0 = DebugWithoutDeployment|Any CPU
{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5CC13EEE-FA24-4666-8272-EB8ECC1CE8E1}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
using MFiles.VAF.Configuration;

using MultiLingualConfiguration.Properties;

using System.Collections.Generic;
using System.Runtime.Serialization;

namespace MultiLingualConfiguration
{
/// <summary>
/// Sample configuration entry for demonstrating multi-lingual settings
/// </summary>
[DataContract]
public class Configuration
{
[DataMember]
[JsonConfEditor(
Label = ResourceMarker.Suffix + nameof(Resources.Label_Configuration_Enabled),
DefaultValue = true,
HelpTextResourceId = nameof(Resources.HelpText_Configuration_Enabled))]
public bool Enabled { get; set; } = true;

[DataMember]
[JsonConfEditor(
Label = ResourceMarker.Suffix + nameof(Resources.Label_Selections),
HelpTextResourceId = nameof(Resources.HelpText_Selections),
ChildName = ResourceMarker.Suffix + nameof(Resources.ChildName_Selection),
NameMember = nameof(SelectionOption.SelectedOption))]
public List<SelectionOption> Selections { get; set; } = new List<SelectionOption>();
}

/// <summary>
/// Sub class for testing name member and child name
/// </summary>
[DataContract]
public class SelectionOption
{
/// <summary>
/// Enum Selection
/// </summary>
[DataMember]
[JsonConfEditor(
Label = ResourceMarker.Suffix + nameof(Resources.Label_SelectedOption),
HelpTextResourceId = nameof(Resources.HelpText_SelectedOption))]
public SelectionOptions SelectedOption { get; set; }
}

/// <summary>
/// Some enum entries just for demonstrating
/// </summary>
public enum SelectionOptions
{
[JsonConfEditor(
Label = ResourceMarker.Suffix + nameof(Resources.Label_SelectionOptions_First),
HelpTextResourceId = nameof(Resources.HelpText_SelectionOptions_First))]
First,

[JsonConfEditor(
Label = ResourceMarker.Suffix + nameof(Resources.Label_SelectionOptions_Second),
HelpTextResourceId = nameof(Resources.HelpText_SelectionOptions_Second))]
Second,

[JsonConfEditor(
Label = ResourceMarker.Suffix + nameof(Resources.Label_SelectionOptions_Third),
HelpTextResourceId = nameof(Resources.HelpText_SelectionOptions_Third))]
Third
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<Project ToolsVersion="4.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>{DBEA0E20-7C3A-49E2-B2B5-832DE0A3B113}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MultiLingualConfiguration</RootNamespace>
<AssemblyName>MultiLingualConfiguration</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<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' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;DONOTDEPLOY</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DebugWithoutDeployment|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;DONOTDEPLOY</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Interop.MFilesAPI, Version=7.0.0.0, Culture=neutral, PublicKeyToken=f1b4733f444f7ad0, processorArchitecture=MSIL">
<HintPath>..\packages\Interop.MFilesAPI.21.8.1\lib\net45\Interop.MFilesAPI.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MFiles.Crypto, Version=21.8.10524.1, Culture=neutral, PublicKeyToken=fa007b370d17fe5e, processorArchitecture=MSIL">
<HintPath>..\packages\MFiles.Crypto.21.8.1\lib\net45\MFiles.Crypto.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MFiles.VAF, Version=2.3.623.1, Culture=neutral, PublicKeyToken=fa007b370d17fe5e, processorArchitecture=MSIL">
<HintPath>..\packages\MFiles.VAF.2.3.623.1\lib\net45\MFiles.VAF.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MFiles.VAF.Configuration, Version=21.8.10524.1, Culture=neutral, PublicKeyToken=fa007b370d17fe5e, processorArchitecture=MSIL">
<HintPath>..\packages\MFiles.VAF.Configuration.21.8.1\lib\net45\MFiles.VAF.Configuration.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MFiles.VAF.Configuration.Interfaces, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fa007b370d17fe5e, processorArchitecture=MSIL">
<HintPath>..\packages\MFiles.VAF.Configuration.21.8.1\lib\net45\MFiles.VAF.Configuration.Interfaces.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Configuration.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="VaultApplication.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="appdef.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="install-application.ps1" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.de-DE.resx" />
<EmbeddedResource Include="Properties\Resources.fi-FI.resx" />
<EmbeddedResource Include="Properties\Resources.fr-FR.resx" />
<EmbeddedResource Include="Properties\Resources.gr-GR.resx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="RunWhenBuildChanges" AfterTargets="CoreBuild">
<Message Importance="High" Text="Cleaning old .mfappx file (if available)..." />
<Delete Files="bin\$(Configuration)\$(ProjectName).mfappx" />
<Message Importance="High" Text="Creating new .mfappx file..." />
<CreateItem Include="bin\$(Configuration)\**\*.*">
<Output ItemName="ZipFiles" TaskParameter="Include" />
</CreateItem>
<Zip ZipFileName="bin\$(Configuration)\$(ProjectName).mfappx" WorkingDirectory="$(TargetDir)" Files="@(ZipFiles)" />
</Target>
<Target Name="NoteDeploymentSkipped" AfterTargets="CoreBuild" Condition="$(DefineConstants.Contains('DONOTDEPLOY'))">
<Message Importance="High" Text="Skipping deployment script (configuration states not to deploy)" />
</Target>
<Target Name="DeployIfNeeded" AfterTargets="CoreBuild" Condition="false == $(DefineConstants.Contains('DONOTDEPLOY'))">
<Message Importance="High" Text="Executing deployment script..." />
<Exec Command="PowerShell -ExecutionPolicy Bypass -File install-application.ps1" />
</Target>
<Import Project="..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets" Condition="Exists('..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSBuildTasks.1.5.0.235\build\MSBuildTasks.targets'))" />
</Target>
<!-- 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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MultiLingualConfiguration")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MultiLingualConfiguration")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b344f366-4805-4546-8d26-9ecd5de03c69")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Loading