Skip to content

Commit

Permalink
The initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaojian authored and Yaojian committed Sep 30, 2016
0 parents commit c1f76c2
Show file tree
Hide file tree
Showing 11 changed files with 6,744 additions and 0 deletions.
1 change: 1 addition & 0 deletions Outer.Inner/.idea/.idea.Outer.Inner/.idea/.name

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

8 changes: 8 additions & 0 deletions Outer.Inner/.idea/.idea.Outer.Inner/.idea/modules.xml

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

9 changes: 9 additions & 0 deletions Outer.Inner/.idea/.idea.Outer.Inner/riderModule.iml

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

22 changes: 22 additions & 0 deletions Outer.Inner/Outer.Inner.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Outer.Inner", "Outer.Inner/Outer.Inner.xproj", "{92674B09-30B1-4A8A-AE57-3E8CC139250B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{92674B09-30B1-4A8A-AE57-3E8CC139250B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{92674B09-30B1-4A8A-AE57-3E8CC139250B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{92674B09-30B1-4A8A-AE57-3E8CC139250B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{92674B09-30B1-4A8A-AE57-3E8CC139250B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
21 changes: 21 additions & 0 deletions Outer.Inner/Outer.Inner/Outer.Inner.xproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>

<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>92674B09-30B1-4A8A-AE57-3E8CC139250B</ProjectGuid>
<RootNamespace>Outer</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">bin\$(MSBuildProjectName)\</OutputPath>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
16 changes: 16 additions & 0 deletions Outer.Inner/Outer.Inner/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Outer.Inner
{
public class Program
{
public static void Main(string[] args)
{
}
}
}


27 changes: 27 additions & 0 deletions Outer.Inner/Outer.Inner/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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("Outer.Inner")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("$safeprojectname$")]
[assembly: AssemblyCopyright("Copyright © 116")]
[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("92674B09-30B1-4A8A-AE57-3E8CC139250B")]

16 changes: 16 additions & 0 deletions Outer.Inner/Outer.Inner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
This project is to verify a bug in Rider https://youtrack.jetbrains.com/issue/RIDER-2240 .


Steps:

1. Create a dotnet core project
1. Set the `RootNamespace` in `Outer.Inner.xproj` to `Outer` (By manually editing the `xproj` file).
1. Create a directory `SubDir` in the project.
1. Add a class `Sample.cs` in directory `SubDir`.

Expected:

Rider should give NO warning for the namespace `Outer.SubDir` in `Sample.cs`.

Actual:
Rider warns `Namespace does not correspond to file location, should be 'Outer.Inner.Inner'`
7 changes: 7 additions & 0 deletions Outer.Inner/Outer.Inner/SubDir/Sample.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Outer.SubDir
{
public class Sample
{

}
}
19 changes: 19 additions & 0 deletions Outer.Inner/Outer.Inner/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},

"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.0"
}
},

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}
}
Loading

0 comments on commit c1f76c2

Please sign in to comment.