Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@microsoft.com>2019-10-09 22:30:43 +0300
committerMatt Ward <matt.ward@microsoft.com>2019-10-17 11:12:09 +0300
commitb372165c4baba117ef4d63f61f423021046743bb (patch)
tree2bc52ec6c83d48eb91858c465fd3c583f4e84193 /main/tests/test-projects
parent452f8be6ae47822e3443ce7d643b82b52d77bc7a (diff)
[Ide] Pass AdditionalFiles and EditorConfigFiles to Roslyn
Use MSBuild to find AdditionalFiles and EditorConfigFiles and pass these to Roslyn when creating the documents for the Roslyn project. Fixes VSTS #963753 - Migrate editorconfig support to use new workspace-based approach
Diffstat (limited to 'main/tests/test-projects')
-rw-r--r--main/tests/test-projects/additional-files/.editorconfig11
-rwxr-xr-xmain/tests/test-projects/additional-files/additional-files.sln20
-rw-r--r--main/tests/test-projects/additional-files/library/MyClass.cs13
-rw-r--r--main/tests/test-projects/additional-files/library/additional-file.txt1
-rw-r--r--main/tests/test-projects/additional-files/library/library.csproj39
5 files changed, 84 insertions, 0 deletions
diff --git a/main/tests/test-projects/additional-files/.editorconfig b/main/tests/test-projects/additional-files/.editorconfig
new file mode 100644
index 0000000000..642b6cfd47
--- /dev/null
+++ b/main/tests/test-projects/additional-files/.editorconfig
@@ -0,0 +1,11 @@
+# Top-most EditorConfig file
+root = true
+
+[*]
+indent_style = space
+end_of_line = crlf
+indent_size = 4
+
+[*.json]
+indent_style = space
+indent_size = 2 \ No newline at end of file
diff --git a/main/tests/test-projects/additional-files/additional-files.sln b/main/tests/test-projects/additional-files/additional-files.sln
new file mode 100755
index 0000000000..8520f622e7
--- /dev/null
+++ b/main/tests/test-projects/additional-files/additional-files.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "library", "library\library.csproj", "{4A9E3523-48F0-4BDF-A0F4-49DAD4431FAB}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {4A9E3523-48F0-4BDF-A0F4-49DAD4431FAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4A9E3523-48F0-4BDF-A0F4-49DAD4431FAB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4A9E3523-48F0-4BDF-A0F4-49DAD4431FAB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4A9E3523-48F0-4BDF-A0F4-49DAD4431FAB}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/main/tests/test-projects/additional-files/library/MyClass.cs b/main/tests/test-projects/additional-files/library/MyClass.cs
new file mode 100644
index 0000000000..e466fdcce6
--- /dev/null
+++ b/main/tests/test-projects/additional-files/library/MyClass.cs
@@ -0,0 +1,13 @@
+using System;
+
+namespace Library
+{
+
+ public class MyClass
+ {
+
+ public MyClass()
+ {
+ }
+ }
+}
diff --git a/main/tests/test-projects/additional-files/library/additional-file.txt b/main/tests/test-projects/additional-files/library/additional-file.txt
new file mode 100644
index 0000000000..8a6dae2c8d
--- /dev/null
+++ b/main/tests/test-projects/additional-files/library/additional-file.txt
@@ -0,0 +1 @@
+additional file test \ No newline at end of file
diff --git a/main/tests/test-projects/additional-files/library/library.csproj b/main/tests/test-projects/additional-files/library/library.csproj
new file mode 100644
index 0000000000..9daa34f44d
--- /dev/null
+++ b/main/tests/test-projects/additional-files/library/library.csproj
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>10.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{7F63CBE6-2FE7-47A7-8930-EA078DA05062}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AssemblyName>library</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="MyClass.cs" />
+ <AdditionalFiles Include="additional-file.txt" />
+ </ItemGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project> \ No newline at end of file