├── .gitattributes ├── .gitignore ├── .gitmodules ├── .travis.yml ├── CONTRIBUTING.md ├── DNX.sln ├── LICENSE.txt ├── NuGet.config ├── README.md ├── appveyor.yml ├── build.cmd ├── build.sh ├── build ├── Config.Definitions.Props ├── Dnx.Common.Targets ├── Dnx.Native.Settings ├── batchcopy.cmd └── batchcopy.sh ├── ext └── compiler │ └── preprocess │ └── Internalization.cs ├── global.json ├── makefile.shade ├── misc ├── AppHostServicesProjects │ ├── global.json │ └── src │ │ └── GetExports │ │ ├── Program.cs │ │ └── project.json ├── ApplicationHostTestProjects │ ├── global.json │ └── src │ │ ├── CompilationException │ │ ├── program.cs │ │ └── project.json │ │ └── CompilationExceptionInMain │ │ ├── program.cs │ │ └── project.json ├── AssemblyInfo │ ├── global.json │ └── src │ │ └── Test │ │ └── project.json ├── BootstrapperSolution │ ├── global.json │ └── src │ │ └── TesterProgram │ │ ├── Program.cs │ │ └── project.json ├── CompileModuleWithDependencies │ ├── global.json │ └── src │ │ ├── A.CompileModule │ │ ├── CompileModule2.cs │ │ └── project.json │ │ └── A │ │ ├── Program.cs │ │ ├── compiler │ │ └── preprocess │ │ │ └── CompileModule2.cs │ │ └── project.json ├── DependencyGraphsFeed │ ├── global.json │ └── src │ │ ├── DependencyA │ │ └── project.json │ │ └── DependencyB │ │ └── project.json ├── DependencyGraphsProject │ ├── global.json │ └── src │ │ └── SimpleChain │ │ └── project.json ├── DependencyTargets │ ├── DependencyTargets.sln │ ├── NuGet.Config │ ├── global.json │ └── src │ │ ├── A │ │ ├── A.xproj │ │ ├── Helper.cs │ │ └── project.json │ │ ├── App │ │ ├── App.xproj │ │ ├── Program.cs │ │ └── project.json │ │ └── B │ │ ├── B.xproj │ │ ├── Helper.cs │ │ └── project.json ├── DllImportTestProjects │ ├── global.json │ ├── lib │ │ ├── build-darwin.sh │ │ ├── build-linux.sh │ │ ├── build.cmd │ │ ├── code.cpp │ │ ├── dllmain.cpp │ │ └── nativelib.vcxproj │ └── src │ │ ├── NativeLib │ │ ├── project.json │ │ └── runtimes │ │ │ ├── osx.10.10-x64 │ │ │ └── native │ │ │ │ └── nativelib.dylib │ │ │ ├── osx.10.11-x64 │ │ │ └── native │ │ │ │ └── nativelib.dylib │ │ │ ├── osx.10.9-x64 │ │ │ └── native │ │ │ │ └── nativelib.dylib │ │ │ ├── ubuntu-x64 │ │ │ └── native │ │ │ │ └── libnativelib.so │ │ │ ├── win7-x64 │ │ │ └── native │ │ │ │ └── nativelib.dll │ │ │ └── win7-x86 │ │ │ └── native │ │ │ └── nativelib.dll │ │ ├── PackageReferenceTest │ │ └── project.json │ │ ├── Program.cs │ │ └── ProjectReferenceTest │ │ └── project.json ├── DnuPublishTestApps │ └── ConsoleAppReferencingWrappedProject │ │ ├── global.json │ │ └── src │ │ ├── ConsoleAppReferencingWrappedProject │ │ ├── Program.cs │ │ └── project.json │ │ └── Net45Library │ │ ├── Class1.cs │ │ ├── Net45Library.csproj │ │ └── Properties │ │ └── AssemblyInfo.cs ├── DnuWrapTestSolutions │ ├── ConsoleApp1 │ │ ├── ConsoleApp1.sln │ │ ├── ExternalAssemblies │ │ │ └── LibraryDelta.dll │ │ ├── LibraryBeta.PCL.Desktop │ │ │ ├── Class1.cs │ │ │ ├── LibraryBeta.PCL.Desktop.csproj │ │ │ └── Properties │ │ │ │ └── AssemblyInfo.cs │ │ ├── LibraryBeta.PCL │ │ │ ├── Class1.cs │ │ │ ├── LibraryBeta.PCL.csproj │ │ │ └── Properties │ │ │ │ └── AssemblyInfo.cs │ │ ├── LibraryEpsilon │ │ │ ├── Class1.cs │ │ │ ├── LibraryEpsilon.csproj │ │ │ └── Properties │ │ │ │ └── AssemblyInfo.cs │ │ ├── LibraryGamma │ │ │ ├── App.config │ │ │ ├── Class1.cs │ │ │ ├── LibraryGamma.csproj │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ └── packages.config │ │ ├── global.json │ │ └── src │ │ │ ├── ConsoleApp1 │ │ │ ├── ConsoleApp1.xproj │ │ │ ├── Program.cs │ │ │ └── project.json │ │ │ ├── LibraryAlpha │ │ │ ├── Class1.cs │ │ │ ├── LibraryAlpha.xproj │ │ │ └── project.json │ │ │ └── LibraryBeta │ │ │ ├── LibraryBeta.xproj │ │ │ └── project.json │ └── WrapAndPublish │ │ ├── NuGet.Config │ │ ├── WrapAndPublish.sln │ │ ├── global.json │ │ ├── src │ │ ├── ClassLibrary │ │ │ ├── ClassLibrary.csproj │ │ │ ├── Helper.cs │ │ │ ├── Properties │ │ │ │ └── AssemblyInfo.cs │ │ │ └── packages.config │ │ └── DnxConsoleApp │ │ │ ├── DnxConsoleApp.xproj │ │ │ ├── Program.cs │ │ │ └── project.json │ │ └── wrap │ │ └── ClassLibrary │ │ └── project.json ├── DthTestProjects │ ├── global.json │ └── src │ │ ├── BrokenProjectPathSample │ │ └── project.json │ │ ├── EmptyConsoleApp │ │ ├── Program.cs │ │ └── project.json │ │ ├── EmptyLibrary │ │ ├── Class.cs │ │ ├── project-update.json │ │ └── project.json │ │ ├── FailReleaseProject │ │ ├── Program.cs │ │ └── project.json │ │ ├── IncompatiblePackageSample │ │ └── project.json │ │ ├── UnresolvedPackageSample │ │ └── project.json │ │ └── UnresolvedProjectSample │ │ └── project.json ├── DthUpdateSearchPathSample │ ├── ext │ │ └── Newtonsoft.Json │ │ │ └── project.json │ └── home │ │ ├── global.json │ │ └── src │ │ └── MainProject │ │ └── project.json ├── EcmaEntryPoint │ ├── global.json │ └── src │ │ └── EcmaEntryPoint │ │ ├── Startup.cs │ │ └── project.json ├── GlobalJsonInProjectDir │ └── Project │ │ ├── global.json │ │ └── project.json ├── HelloWorld │ ├── global.json │ └── src │ │ └── HelloWorld │ │ ├── Program.cs │ │ └── project.json ├── HelloWorldWithWebRoot │ ├── global.json │ └── src │ │ └── HelloWorldWithWebRoot │ │ ├── Program.cs │ │ ├── hosting.json │ │ ├── project.json │ │ └── wwwroot │ │ └── somefile.txt ├── LockFileTestProjects │ ├── global.json │ └── src │ │ ├── Dnx451AppReferencingNet40Lib │ │ ├── Program.cs │ │ └── project.json │ │ └── Net40Lib │ │ ├── HelloGetter.cs │ │ └── project.json ├── MismatchedVersionCasing │ ├── global.json │ └── src │ │ └── A │ │ └── project.json ├── NestProjectRestoreModel │ ├── global.json │ └── src │ │ └── Main │ │ ├── Nest │ │ └── project.json │ │ └── project.json ├── ProjectToProject │ ├── global.json │ └── src │ │ ├── P1 │ │ ├── Program.cs │ │ └── project.json │ │ └── P2 │ │ ├── BaseClass.cs │ │ └── project.json ├── PublishRuntimeDependency │ ├── Program.cs │ ├── PublishRuntimeDependency.xproj │ └── project.json ├── PublishWithDependency │ ├── global.json │ └── src │ │ ├── A │ │ └── project.json │ │ └── App │ │ └── project.json ├── ResourcesTestProjects │ ├── EmbeddedResources │ │ ├── Program.cs │ │ ├── compiler │ │ │ └── resources │ │ │ │ ├── Basic.Test.html │ │ │ │ └── Hello.txt │ │ └── project.json │ ├── ReadFromResources │ │ ├── global.json │ │ └── src │ │ │ ├── ReadFromResources │ │ │ ├── Program.cs │ │ │ ├── Program.de.resx │ │ │ ├── Program.fr-FR.resx │ │ │ ├── Program.resx │ │ │ └── project.json │ │ │ ├── ResourcesLibrary │ │ │ ├── Test.fr-FR.resx │ │ │ └── project.json │ │ │ └── TestClassLibrary │ │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ │ ├── TestClass.cs │ │ │ └── project.json │ ├── someresources │ │ ├── OtherResources.resx │ │ └── OtherText.txt │ └── testproject │ │ ├── OwnResources.resx │ │ ├── owntext.txt │ │ ├── project.json │ │ └── subfolder │ │ ├── nestedresource.resx │ │ └── nestedtext.txt ├── RuntimeRestore │ ├── README.md │ ├── RuntimeRestoreTestPackage │ │ ├── Default.cs │ │ ├── RuntimeRestoreTest.nuspec │ │ ├── Sample.osx.10.10-x64.cs │ │ ├── Sample.ubuntu.14.04-x64.cs │ │ ├── Sample.win7-x64.cs │ │ ├── Sample.win7-x86.cs │ │ ├── Sample.win8-x86.cs │ │ ├── build.ps1 │ │ └── feed │ │ │ ├── README.md │ │ │ └── RuntimeRestoreTest.1.0.0.nupkg │ └── TestProject │ │ ├── Program.cs │ │ ├── global.json │ │ └── project.json ├── ServicingTestProjects │ ├── ServiceableLib1 │ │ ├── AssemblyInfo.cs │ │ ├── Class1.cs │ │ └── project.json │ ├── UnserviceableLib1 │ │ ├── AssemblyInfo.cs │ │ ├── Class1.cs │ │ └── project.json │ └── UnserviceableLib2 │ │ ├── Class1.cs │ │ └── project.json └── XreTestApps │ ├── AllTheDnxes │ ├── Program.cs │ └── project.json │ ├── BareApp │ └── project.json │ ├── CommandsProject │ ├── Program.cs │ └── project.json │ ├── DependentProject │ └── project.json │ ├── Dnx451 │ ├── Program.cs │ └── project.json │ ├── Dnx452 │ ├── Program.cs │ └── project.json │ ├── Dnx46 │ ├── Program.cs │ └── project.json │ ├── FrameworkReferences │ ├── Program.cs │ └── project.json │ ├── NoDependencies │ ├── Program.cs │ └── project.json │ ├── README.md │ ├── SharedLibrary1 │ ├── Program.cs │ └── project.json │ ├── SharedLibrary2 │ ├── Program.cs │ └── project.json │ ├── SharedLibrary3 │ ├── Program.cs │ └── project.json │ ├── SharedSource │ ├── Shared.cs │ └── project.json │ ├── UnresolvedDependency │ └── project.json │ ├── UsesSharedSource │ ├── Program.cs │ └── project.json │ └── global.json ├── nuspec ├── dnx-clr-win-x64.nuspec ├── dnx-clr-win-x86.nuspec ├── dnx-coreclr-darwin-x64.nuspec ├── dnx-coreclr-linux-x64.nuspec ├── dnx-coreclr-win-arm.nuspec ├── dnx-coreclr-win-x64.nuspec ├── dnx-coreclr-win-x86.nuspec └── dnx-mono.nuspec ├── samples ├── HelloShared │ ├── HelloShared.xproj │ ├── HelloSharedCode.cs │ └── project.json └── HelloWorld │ ├── HelloWorld.xproj │ ├── Program.cs │ ├── compiler │ ├── preprocess │ │ └── HelloMetaProgramming.cs │ └── resources │ │ └── HTMLPage1.html │ ├── more │ └── CompilerError.cs │ └── project.json ├── scripts ├── dnu.cmd ├── dnu.sh ├── dnx-crossgen.cmd └── dnx.sh ├── src ├── Microsoft.Dnx.ApplicationHost │ ├── ApplicationHostPlatformServices.cs │ ├── DefaultHost.cs │ ├── DefaultHostOptions.cs │ ├── Infrastructure │ │ └── DisposableAction.cs │ ├── Microsoft.Dnx.ApplicationHost.xproj │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RuntimeLibraryManager.cs │ └── project.json ├── Microsoft.Dnx.Compilation.CSharp.Abstractions │ ├── AfterCompileContext.cs │ ├── BeforeCompileContext.cs │ ├── ICompileModule.cs │ ├── IRoslynMetadataReference.cs │ ├── Microsoft.Dnx.Compilation.CSharp.Abstractions.xproj │ ├── ProjectContext.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json ├── Microsoft.Dnx.Compilation.CSharp.Common │ ├── CompilationSettings.cs │ ├── CompilerOptionsExtensions.cs │ ├── CultureInfoCache.cs │ ├── DiagnosticExtensions.cs │ ├── MetadataReferenceExtensions.cs │ ├── Microsoft.Dnx.Compilation.CSharp.Common.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── ResourcesForCulture.cs │ ├── RoslynCompilationException.cs │ ├── RoslynDiagnosticFormatter.cs │ ├── SnkUtils.cs │ └── project.json ├── Microsoft.Dnx.Compilation.CSharp │ ├── CompilationContext.cs │ ├── Microsoft.Dnx.Compilation.CSharp.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RoslynCompiler.cs │ ├── RoslynDiagnosticUtilities.cs │ ├── RoslynDiagnostics.cs │ ├── RoslynMetadataReference.cs │ ├── RoslynProjectCompiler.cs │ ├── RoslynProjectReference.cs │ └── project.json ├── Microsoft.Dnx.Compilation.DesignTime │ ├── CompileResponse.cs │ ├── DesignTimeCompilationException.cs │ ├── DesignTimeHostCompiler.cs │ ├── DesignTimeHostProjectCompiler.cs │ ├── DesignTimeProjectReference.cs │ ├── IDesignTimeHostCompiler.cs │ ├── Messages │ │ ├── DesignTimeMessage.cs │ │ ├── EnumerateProjectContextsMessage.cs │ │ └── GetCompiledAssemblyMessage.cs │ ├── Microsoft.Dnx.Compilation.DesignTime.xproj │ ├── ProcessingQueue.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json ├── Microsoft.Dnx.Compilation │ ├── BuildLoadContext.cs │ ├── Caching │ │ ├── Cache.cs │ │ ├── CacheContextAccessor.cs │ │ ├── CompilationCache.cs │ │ ├── FileWriteTimeCacheDependency.cs │ │ ├── NamedCacheDependency.cs │ │ └── NamedCacheDependencyProvider.cs │ ├── CompilationEngine.cs │ ├── CompilationEngineContext.cs │ ├── CompilationTargetExtensions.cs │ ├── LibraryExporter.cs │ ├── Microsoft.Dnx.Compilation.xproj │ ├── ProjectExtensions.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Resources │ │ ├── CompositeResourceProvider.cs │ │ ├── CreateCSharpManifestResourceName.cs │ │ ├── EmbeddedResourceProvider.cs │ │ ├── IResourceProvider.cs │ │ ├── ResourcePathUtility.cs │ │ └── ResxResourceProvider.cs │ └── project.json ├── Microsoft.Dnx.DesignTimeHost.Abstractions │ ├── IPlugin.cs │ ├── IPluginMessageBroker.cs │ ├── Microsoft.Dnx.DesignTimeHost.Abstractions.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json ├── Microsoft.Dnx.DesignTimeHost │ ├── ApplicationContext.cs │ ├── ConnectionContext.cs │ ├── Context.cs │ ├── InternalModels │ │ ├── DependencyInfo.cs │ │ ├── ProjectInfo.cs │ │ └── ProjectState.cs │ ├── Microsoft.Dnx.DesignTimeHost.xproj │ ├── Models │ │ ├── IncomingMessages │ │ │ ├── ChangeConfigurationMessage.cs │ │ │ ├── InitializeMessage.cs │ │ │ ├── PluginMessage.cs │ │ │ └── SourceTextChangeMessage.cs │ │ ├── Message.cs │ │ ├── OutgoingMessages │ │ │ ├── CompilationOptionsMessage.cs │ │ │ ├── DependenciesMessage.cs │ │ │ ├── DependencyDescription.cs │ │ │ ├── DependencyItem.cs │ │ │ ├── DiagnosticMessageView.cs │ │ │ ├── DiagnosticsListMessage.cs │ │ │ ├── ErrorMessage.cs │ │ │ ├── FrameworkData.cs │ │ │ ├── NoopPluginResponseMessage.cs │ │ │ ├── OutputsMessage.cs │ │ │ ├── PluginResponseMessage.cs │ │ │ ├── ProjectMessage.cs │ │ │ ├── ProjectReference.cs │ │ │ ├── ReferencesMessage.cs │ │ │ ├── RegisterPluginResponseMessage.cs │ │ │ └── SourcesMessage.cs │ │ └── World.cs │ ├── NonLoadingLoadContext.cs │ ├── PluginHandler.cs │ ├── PluginHandlerOnReceiveResult.cs │ ├── PluginMessageBroker.cs │ ├── ProcessingQueue.cs │ ├── Program.cs │ ├── ProjectStateResolver.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Resources.Designer.cs │ ├── ProtocolManager.cs │ ├── Resources.resx │ └── project.json ├── Microsoft.Dnx.Host.Clr │ ├── DnxHostExecutionContextManager.cs │ ├── DomainManager.cs │ ├── Microsoft.Dnx.Host.Clr.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RuntimeBootstrapper.cs │ ├── ThreadContext.cs │ └── project.json ├── Microsoft.Dnx.Host.CoreClr │ ├── DomainManager.cs │ ├── Microsoft.Dnx.Host.CoreClr.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json ├── Microsoft.Dnx.Host.Mono │ ├── EntryPoint.cs │ ├── Microsoft.Dnx.Host.Mono.xproj │ └── project.json ├── Microsoft.Dnx.Host │ ├── Bootstrapper.cs │ ├── BootstrapperContext.cs │ ├── DefaultLoadContext.cs │ ├── DnxHostDnxPlatformServices.cs │ ├── DnxHostPlatformServices.cs │ ├── FrameworkNameUtility.cs │ ├── HostApplicationEnvironment.cs │ ├── LoaderContainer.cs │ ├── Microsoft.Dnx.Host.xproj │ ├── PathBasedAssemblyLoader.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RuntimeBootstrapper.cs │ ├── RuntimeEnvironment.cs │ └── project.json ├── Microsoft.Dnx.Loader │ ├── AssemblyLoaderCache.cs │ ├── LoadContext.cs │ ├── LoadContextAccessor.cs │ ├── Microsoft.Dnx.Loader.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json ├── Microsoft.Dnx.Project │ ├── App.config │ ├── CrossGenManager.cs │ ├── CrossgenOptions.cs │ ├── Microsoft.Dnx.Project.xproj │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json ├── Microsoft.Dnx.Runtime.CommandParsing.Sources │ ├── Chain.cs │ ├── CommandGrammar.cs │ ├── Cursor.cs │ ├── Grammar.cs │ ├── Microsoft.Dnx.Runtime.CommandParsing.Sources.xproj │ ├── Parser.cs │ ├── ParserExtensions.cs │ ├── Result.cs │ └── project.json ├── Microsoft.Dnx.Runtime.Internals │ ├── Constants.cs │ ├── DiagnosticMonikers.cs │ ├── Microsoft.Dnx.Runtime.Internals.xproj │ ├── RuntimeEnvironmentExtensions.cs │ └── project.json ├── Microsoft.Dnx.Runtime.Sources │ ├── Impl │ │ ├── Constants.cs │ │ ├── DependencyInjection │ │ │ ├── ActivatorUtilities.cs │ │ │ └── ServiceProvider.cs │ │ ├── DictionaryExtensions.cs │ │ ├── EntryPointExecutor.cs │ │ ├── EnvironmentNames.cs │ │ ├── FrameworkNames.cs │ │ ├── Logger.cs │ │ ├── ResourcesHelper.cs │ │ └── RuntimeEnvironmentHelper.cs │ ├── Microsoft.Dnx.Runtime.Sources.xproj │ └── project.json ├── Microsoft.Dnx.Runtime │ ├── ApplicationEnvironment.cs │ ├── ApplicationHostContext.cs │ ├── AssemblyInformation.cs │ ├── Compilation │ │ ├── CompilerOptions.cs │ │ ├── CompilerOptionsProvider.cs │ │ ├── ICompilationEngine.cs │ │ └── RuntimeLibraryExporter.cs │ ├── CompilerServices.cs │ ├── DependencyManagement │ │ ├── GacDependencyResolver.cs │ │ ├── LibraryDependency.cs │ │ ├── LibraryDependencyType.cs │ │ ├── LibraryDependencyTypeFlag.cs │ │ ├── LibraryDescription.cs │ │ ├── LibraryIdentity.cs │ │ ├── LibraryManager.cs │ │ ├── LibraryRange.cs │ │ ├── LibraryTypes.cs │ │ ├── LockFile.cs │ │ ├── LockFileItem.cs │ │ ├── LockFileLookup.cs │ │ ├── LockFilePackageLibrary.cs │ │ ├── LockFileProjectLibrary.cs │ │ ├── LockFileReader.cs │ │ ├── LockFileTarget.cs │ │ ├── LockFileTargetLibrary.cs │ │ ├── PackageDependencyProvider.cs │ │ ├── PackageDescription.cs │ │ ├── ProjectDependencyProvider.cs │ │ ├── ProjectDescription.cs │ │ ├── ProjectFileDependencyGroup.cs │ │ ├── ReferenceAssemblyDependencyResolver.cs │ │ ├── SemanticVersionFloatBehavior.cs │ │ ├── SemanticVersionRange.cs │ │ └── UnresolvedDependencyProvider.cs │ ├── DependencyTargets.cs │ ├── FileFormatException.cs │ ├── FrameworkDefinitions.cs │ ├── FrameworkInformation.cs │ ├── FrameworkReferenceResolver.cs │ ├── GlobalSettings.cs │ ├── IFrameworkReferenceResolver.cs │ ├── Internal │ │ ├── ConcurrencyUtilities.cs │ │ ├── FrameworkNameHelper.cs │ │ └── ProjectUtilities.cs │ ├── Loader │ │ ├── PackageAssemblyLoader.cs │ │ ├── ProjectAssemblyLoader.cs │ │ └── RuntimeLoadContext.cs │ ├── Microsoft.Dnx.Runtime.xproj │ ├── NamedResourceReader.cs │ ├── NativeLibPathUtils.cs │ ├── NuGet │ │ ├── Extensions │ │ │ ├── SemanticVersionRangeExtensions.cs │ │ │ └── XElementExtensions.cs │ │ ├── NETPortable │ │ │ ├── NetPortableProfile.cs │ │ │ ├── NetPortableProfileCollection.cs │ │ │ └── NetPortableProfileTable.cs │ │ ├── Packages │ │ │ ├── Constants.cs │ │ │ ├── DefaultPackagePathResolver.cs │ │ │ ├── FrameworkAssemblyReference.cs │ │ │ ├── IFrameworkTargetable.cs │ │ │ ├── IPackagePathResolver.cs │ │ │ └── PackageDependency.cs │ │ ├── Resources │ │ │ ├── NuGetResources.Designer.cs │ │ │ └── NuGetResources.resx │ │ ├── SemanticVersion.cs │ │ └── Utility │ │ │ ├── DotNetGenerationMapping.cs │ │ │ ├── FrameworkNameEqualityComparer.cs │ │ │ ├── IVersionSpec.cs │ │ │ ├── PathUtility.cs │ │ │ ├── ReadOnlyHashSet.cs │ │ │ ├── VersionSpec.cs │ │ │ └── VersionUtility.cs │ ├── PackIncludeEntry.cs │ ├── PatternGroup.cs │ ├── PatternsCollectionHelper.cs │ ├── Project.cs │ ├── ProjectFilesCollection.cs │ ├── ProjectReader.cs │ ├── ProjectRootResolver.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Servicing │ │ ├── Breadcrumbs.cs │ │ ├── ServicingIndex.cs │ │ └── ServicingTable.cs │ ├── TargetFrameworkInformation.cs │ ├── TypeInformation.cs │ └── project.json ├── Microsoft.Dnx.TestHost.Client.Sources │ ├── DNX.cs │ ├── Microsoft.Dnx.TestHost.Client.Sources.xproj │ ├── TestHostWrapper.cs │ └── project.json ├── Microsoft.Dnx.TestHost │ ├── DIA │ │ ├── DataKind.cs │ │ ├── DiaDataSource.cs │ │ ├── IDiaDataSource.cs │ │ ├── IDiaEnumDebugStreamData.cs │ │ ├── IDiaEnumDebugStreams.cs │ │ ├── IDiaEnumInjectedSources.cs │ │ ├── IDiaEnumInputAssemblyFiles.cs │ │ ├── IDiaEnumLineNumbers.cs │ │ ├── IDiaEnumSourceFiles.cs │ │ ├── IDiaEnumSymbols.cs │ │ ├── IDiaEnumSymbolsByAddr.cs │ │ ├── IDiaEnumTables.cs │ │ ├── IDiaInjectedSource.cs │ │ ├── IDiaInputAssemblyFile.cs │ │ ├── IDiaLineNumber.cs │ │ ├── IDiaSession.cs │ │ ├── IDiaSourceFile.cs │ │ ├── IDiaSymbol.cs │ │ ├── IDiaTable.cs │ │ ├── IEnumUnknown.cs │ │ ├── ISequentialStream.cs │ │ ├── IStream.cs │ │ ├── StreamWrapper.cs │ │ ├── Structs.cs │ │ └── SymTagEnum.cs │ ├── Messages │ │ ├── ErrorMessage.cs │ │ ├── LogMessage.cs │ │ ├── Message.cs │ │ ├── ProtocolVersionMessage.cs │ │ └── RunTestsMessage.cs │ ├── Microsoft.Dnx.TestHost.xproj │ ├── Program.cs │ ├── Project.cs │ ├── ProjectCommand.cs │ ├── ProjectTestHostServices.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── ReportingChannel.cs │ ├── TestAdapter │ │ ├── SourceInformationProvider.cs │ │ ├── TestDiscoverySink.cs │ │ ├── TestExecutionSink.cs │ │ └── TestHostLoggerProvider.cs │ ├── TestHostTracing.cs │ └── project.json ├── Microsoft.Dnx.Testing.Abstractions │ ├── ISourceInformationProvider.cs │ ├── ITestDiscoverySink.cs │ ├── ITestExecutionSink.cs │ ├── Microsoft.Dnx.Testing.Abstractions.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SourceInformation.cs │ ├── Test.cs │ ├── TestHostServices.cs │ ├── TestOutcome.cs │ ├── TestResult.cs │ └── project.json ├── Microsoft.Dnx.Tooling │ ├── Algorithms │ │ ├── DepthFirstGraphTraversal.cs │ │ ├── IGraphNode.cs │ │ └── IGraphNodeExtensions.cs │ ├── Building │ │ ├── BuildContext.cs │ │ ├── BuildManager.cs │ │ └── BuildOptions.cs │ ├── ClearCache │ │ └── ClearCacheCommand.cs │ ├── Colors.cs │ ├── Commands │ │ ├── AddCommand.cs │ │ ├── InstallCommand.cs │ │ └── WrapCommand.cs │ ├── ConsoleCommands │ │ ├── BuildConsoleCommand.cs │ │ ├── ClearCacheConsoleCommand.cs │ │ ├── CommandsConsoleCommand.cs │ │ ├── FeedsConsoleCommand.cs │ │ ├── InstallConsoleCommand.cs │ │ ├── ListConsoleCommand.cs │ │ ├── PackConsoleCommand.cs │ │ ├── PackagesConsoleCommand.cs │ │ ├── PublishConsoleCommand.cs │ │ ├── RestoreConsoleCommand.cs │ │ └── WrapConsoleCommand.cs │ ├── FeedCommandLineOptions.cs │ ├── FeedOptions.cs │ ├── Feeds │ │ └── ListFeedsCommand.cs │ ├── IProjectResolver.cs │ ├── IReport.cs │ ├── Install │ │ ├── AppCommandsFolderRepository.cs │ │ ├── CommandNameValidator.cs │ │ ├── IAppCommandsRepository.cs │ │ ├── InstallBuilder.cs │ │ ├── InstallGlobalCommand.cs │ │ └── UninstallCommand.cs │ ├── List │ │ ├── AssemblyWalker.cs │ │ ├── DependencyListCommand.cs │ │ ├── DependencyListOperation.cs │ │ ├── DependencyListOptions.cs │ │ ├── LibraryDependencyFinder.cs │ │ ├── LibraryDependencyFlatRenderer.cs │ │ └── MismatchedDependencyRenderer.cs │ ├── Microsoft.Dnx.Tooling.xproj │ ├── NuGet │ │ ├── Authoring │ │ │ ├── EmptyFrameworkFolderFile.cs │ │ │ ├── IPackageBuilder.cs │ │ │ ├── IPropertyProvider.cs │ │ │ ├── Manifest.cs │ │ │ ├── ManifestFile.cs │ │ │ ├── ManifestMetadata.cs │ │ │ ├── ManifestReader.cs │ │ │ ├── ManifestSchemaUtility.cs │ │ │ ├── ManifestVersionAttribute.cs │ │ │ ├── ManifestVersionUtility.cs │ │ │ ├── NullPropertyProvider.cs │ │ │ ├── PackageBuilder.cs │ │ │ ├── PackageDependencySet.cs │ │ │ ├── PackageReferenceSet.cs │ │ │ ├── PathResolver.cs │ │ │ ├── PhysicalPackageAssemblyReference.cs │ │ │ ├── PhysicalPackageFile.cs │ │ │ └── nuspec.xsd │ │ ├── CommandLine │ │ │ ├── CommandLineMachineWideSettings.cs │ │ │ ├── Common │ │ │ │ ├── CommandLineConstants.cs │ │ │ │ └── LocalizedResourceManager.cs │ │ │ └── PackageSourceBuilder.cs │ │ ├── Common │ │ │ ├── CommonResources.Designer.cs │ │ │ ├── CommonResources.cs │ │ │ ├── CommonResources.resx │ │ │ └── NuGetConstants.cs │ │ ├── ContentModel │ │ │ ├── Asset.cs │ │ │ ├── ContentItem.cs │ │ │ ├── ContentItemCollection.cs │ │ │ ├── ContentItemGroup.cs │ │ │ ├── ContentPatternDefinition.cs │ │ │ ├── ContentPropertyDefinition.cs │ │ │ ├── Infrastructure │ │ │ │ └── Parser.cs │ │ │ └── SelectionCriteria.cs │ │ ├── Core │ │ │ ├── Configuration │ │ │ │ ├── ConfigurationDefaults.cs │ │ │ │ ├── ISettings.cs │ │ │ │ ├── NullSettings.cs │ │ │ │ ├── SettingValue.cs │ │ │ │ └── Settings.cs │ │ │ ├── Extensions │ │ │ │ └── SettingsExtensions.cs │ │ │ ├── IMachineWideSettings.cs │ │ │ ├── PackageSource │ │ │ │ ├── IPackageSourceProvider.cs │ │ │ │ ├── PackageSource.cs │ │ │ │ └── PackageSourceProvider.cs │ │ │ ├── Repository │ │ │ │ └── LocalPackageRepository.cs │ │ │ └── Utility │ │ │ │ ├── CryptoHashProvider.cs │ │ │ │ ├── EncryptionUtility.cs │ │ │ │ └── IHashProvider.cs │ │ ├── Extensions │ │ │ ├── CollectionExtensions.cs │ │ │ ├── EnumerableExtensions.cs │ │ │ ├── FileSystemExtensions.cs │ │ │ ├── ObjectExtensions.cs │ │ │ ├── PackageExtensions.cs │ │ │ ├── StreamExtensions.cs │ │ │ ├── StringExtensions.cs │ │ │ └── XElementExtensions.cs │ │ ├── Logging │ │ │ ├── ILogger.cs │ │ │ ├── MessageLevel.cs │ │ │ └── NullLogger.cs │ │ ├── NuGetResources.resx │ │ ├── Packages │ │ │ ├── IPackage.cs │ │ │ ├── IPackageAssemblyReference.cs │ │ │ ├── IPackageFile.cs │ │ │ ├── IPackageMetadata.cs │ │ │ ├── IPackageName.cs │ │ │ ├── LocalPackage.cs │ │ │ ├── OptimizedZipPackage.cs │ │ │ ├── PackageInfo.cs │ │ │ ├── PackageName.cs │ │ │ ├── UnzippedPackage.cs │ │ │ ├── ZipPackage.cs │ │ │ ├── ZipPackageAssemblyReference.cs │ │ │ └── ZipPackageFile.cs │ │ ├── ProjectSystem │ │ │ ├── IFileSystem.cs │ │ │ └── PhysicalFileSystem.cs │ │ ├── Utility │ │ │ ├── PackageEqualityComparer.cs │ │ │ ├── PackageHelper.cs │ │ │ ├── PackageIdValidator.cs │ │ │ ├── UriUtility.cs │ │ │ └── ZipArchiveExtensions.cs │ │ └── Xml │ │ │ ├── PackageMetadataXmlExtensions.cs │ │ │ └── XmlUtility.cs │ ├── NuGetConfig.cs │ ├── Packages │ │ ├── Add │ │ │ ├── AddCommand.cs │ │ │ └── AddOptions.cs │ │ ├── Commit │ │ │ ├── CommitCommand.cs │ │ │ └── CommitOptions.cs │ │ ├── PackagesCommand.cs │ │ ├── PackagesOptions.cs │ │ ├── Pull │ │ │ ├── PullCommand.cs │ │ │ └── PullOptions.cs │ │ ├── Push │ │ │ ├── PushCommand.cs │ │ │ └── PushOptions.cs │ │ └── Workers │ │ │ ├── AbstractRepositoryPublisher.cs │ │ │ ├── FileSystemRepositoryPublisher.cs │ │ │ ├── IRepositoryPublisher.cs │ │ │ ├── RepositoryChangeRecord.cs │ │ │ ├── RepositoryContentsRecord.cs │ │ │ ├── RepositoryPublisherExtensions.cs │ │ │ ├── RepositoryPublishers.cs │ │ │ └── RepositoryTransmitRecord.cs │ ├── Program.cs │ ├── ProjectExtensions.cs │ ├── ProjectResolver.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Publish │ │ ├── DependencyContext.cs │ │ ├── NativeImageGenerator.cs │ │ ├── PublishManager.cs │ │ ├── PublishOperations.cs │ │ ├── PublishOptions.cs │ │ ├── PublishPackage.cs │ │ ├── PublishProject.cs │ │ ├── PublishRoot.cs │ │ └── PublishRuntime.cs │ ├── Report.cs │ ├── ReportExtensions.cs │ ├── Reports.cs │ ├── ReportsFactory.cs │ ├── Restore │ │ ├── EmbeddedRuntimeData.cs │ │ ├── GraphModel │ │ │ ├── GraphItem.cs │ │ │ └── GraphNode.cs │ │ ├── IDependencyProvider.cs │ │ ├── IWalkProvider.cs │ │ ├── LocalWalkProvider.cs │ │ ├── LockFileFormat.cs │ │ ├── NuGet │ │ │ ├── ErrorMessageUtils.cs │ │ │ ├── HttpSource.cs │ │ │ ├── HttpSourceResult.cs │ │ │ ├── IPackageFeed.cs │ │ │ ├── KpmPackageFolder.cs │ │ │ ├── NuGetPackageFolder.cs │ │ │ ├── NuGetv2Feed.cs │ │ │ ├── NuGetv3Feed.cs │ │ │ ├── NupkgEntry.cs │ │ │ ├── PackageFolderFactory.cs │ │ │ ├── PackageInfo.cs │ │ │ ├── PackageRepository.cs │ │ │ └── PackageUtilities.cs │ │ ├── NuGetDependencyResolver.cs │ │ ├── ProjectReferenceDependencyProvider.cs │ │ ├── RemoteWalkProvider.cs │ │ ├── RestoreCommand.cs │ │ ├── RestoreContext.cs │ │ ├── RestoreOperations.cs │ │ ├── RestoreProjectsCollector.cs │ │ ├── RestoreRuntimeEnvironmentExtensions.cs │ │ ├── RuntimeModel │ │ │ ├── RuntimeFile.cs │ │ │ └── RuntimeFormatter.cs │ │ └── WalkProviderMatch.cs │ ├── Scripts │ │ └── ScriptExecutor.cs │ ├── Shims │ │ └── ProtectedData.cs │ ├── Utils │ │ ├── DnuEnvironment.cs │ │ ├── FileOperationUtils.cs │ │ ├── FrameworkSelectionHelper.cs │ │ ├── LockFileUtils.cs │ │ ├── NuGetPackageUtils.cs │ │ ├── PackageFeedCache.cs │ │ ├── PackageResolverHelper.cs │ │ ├── PackageSourceUtils.cs │ │ ├── PathUtilities.cs │ │ ├── SettingsUtils.cs │ │ └── VersionUtils.cs │ ├── compiler │ │ └── resources │ │ │ └── ReferenceResolver.xml │ └── project.json ├── Microsoft.Dnx │ ├── Microsoft.Dnx.xproj │ └── project.json ├── Microsoft.Extensions.CommandLineUtils.Sources │ ├── CommandLine │ │ ├── AnsiConsole.cs │ │ ├── CommandArgument.cs │ │ ├── CommandLineApplication.cs │ │ ├── CommandOption.cs │ │ ├── CommandOptionType.cs │ │ └── CommandParsingException.cs │ ├── Microsoft.Extensions.CommandLineUtils.Sources.xproj │ └── project.json ├── Microsoft.Extensions.CompilationAbstractions │ ├── Caching │ │ ├── CacheContext.cs │ │ ├── CacheExtensions.cs │ │ ├── ICache.cs │ │ ├── ICacheContextAccessor.cs │ │ ├── ICacheDependency.cs │ │ └── INamedCacheDependencyProvider.cs │ ├── CompilationFailure.cs │ ├── CompilationFiles.cs │ ├── CompilationProjectContext.cs │ ├── CompilationServices.cs │ ├── CompilationTarget.cs │ ├── CompiledProjectMetadataReference.cs │ ├── DefaultCompilationServices.cs │ ├── DiagnosticMessage.cs │ ├── DiagnosticMessageExtensions.cs │ ├── DiagnosticMessageSeverity.cs │ ├── DiagnosticResult.cs │ ├── EmbeddedMetadataReference.cs │ ├── ICompilationException.cs │ ├── ICompilerOptions.cs │ ├── ICompilerOptionsProvider.cs │ ├── ILibraryExporter.cs │ ├── IMetadataEmbeddedReference.cs │ ├── IMetadataFileReference.cs │ ├── IMetadataProjectReference.cs │ ├── IMetadataReference.cs │ ├── IProjectCompiler.cs │ ├── ISourceFileReference.cs │ ├── ISourceReference.cs │ ├── LibraryExport.cs │ ├── MetadataFileReference.cs │ ├── Microsoft.Extensions.CompilationAbstractions.xproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── ResourceDescriptor.cs │ ├── SourceFileReference.cs │ └── project.json ├── Microsoft.Extensions.JsonParser.Sources │ ├── JsonArray.cs │ ├── JsonBoolean.cs │ ├── JsonBuffer.cs │ ├── JsonDeserializer.cs │ ├── JsonDeserializerException.cs │ ├── JsonDeserializerResource.cs │ ├── JsonNull.cs │ ├── JsonNumber.cs │ ├── JsonObject.cs │ ├── JsonString.cs │ ├── JsonToken.cs │ ├── JsonTokenType.cs │ ├── JsonValue.cs │ ├── Microsoft.Extensions.JsonParser.Sources.xproj │ └── project.json ├── Microsoft.Extensions.PlatformAbstractions.Dnx │ ├── AssemblyLoadContextExtensions.cs │ ├── DefaultPlatformServices.cs │ ├── IAssemblyLoadContext.cs │ ├── IAssemblyLoadContextAccessor.cs │ ├── IAssemblyLoader.cs │ ├── IAssemblyLoaderContainer.cs │ ├── ILibraryManager.cs │ ├── Library.cs │ ├── Microsoft.Extensions.PlatformAbstractions.Dnx.xproj │ ├── PlatformServices.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── project.json ├── dnx.clr │ ├── ClrBootstrapper.h │ ├── ComObject.h │ ├── CriticalSection.h │ ├── FileStream.h │ ├── HostAssemblyManager.cpp │ ├── HostAssemblyManager.h │ ├── HostAssemblyStore.cpp │ ├── HostAssemblyStore.h │ ├── Resource.rc │ ├── dllmain.cpp │ ├── dnx.clr.cpp │ ├── dnx.clr.def │ ├── dnx.clr.vcxproj │ ├── dnx.clr.vcxproj.filters │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── dnx.common │ ├── dnx.common.vcxproj │ ├── dnx.common.vcxproj.filters │ ├── include │ │ ├── app_main.h │ │ ├── tpa.h │ │ ├── trace_writer.h │ │ ├── utils.h │ │ └── xplat.h │ ├── stdafx.cpp │ ├── stdafx.h │ ├── targetver.h │ ├── tpa.cpp │ └── utils.cpp ├── dnx.coreclr.unix │ ├── dnx.coreclr.cpp │ └── stdafx.h ├── dnx.coreclr │ ├── Resource.rc │ ├── dllmain.cpp │ ├── dnx.coreclr.cpp │ ├── dnx.coreclr.filters │ ├── dnx.coreclr.h │ ├── dnx.coreclr.vcxproj │ ├── dnx.coreclr.vcxproj.filters │ ├── exports.def │ ├── mscoree.h │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── dnx.windows │ ├── Resource.rc │ ├── dnx.cpp │ ├── dnx.exe.manifest │ ├── dnx.windows.vcxproj │ ├── dnx.windows.vcxproj.filters │ ├── resource.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h └── dnx │ ├── Resource.rc │ ├── dllmain.cpp │ ├── dnx.cpp │ ├── dnx.def │ ├── dnx.filters │ ├── dnx.vcxproj │ ├── main.cpp │ ├── pal.darwin.cpp │ ├── pal.h │ ├── pal.linux.cpp │ ├── pal.unix.cpp │ ├── pal.win32.cpp │ ├── resource.h │ ├── servicing.cpp │ ├── servicing.h │ ├── stdafx.cpp │ ├── stdafx.h │ └── targetver.h ├── test ├── Bootstrapper.FunctionalTests │ ├── Bootstrapper.FunctionalTests.xproj │ ├── BootstrapperTestCollection.cs │ ├── BootstrapperTests.Old.cs │ ├── BootstrapperTests.cs │ ├── ResourcesTest.cs │ └── project.json ├── Microsoft.Dnx.ApplicationHost.FunctionalTests │ ├── AppHostTests.Old.cs │ ├── AppHostTests.cs │ ├── ApplicationHostTestCollection.cs │ ├── DllImportTests.cs │ ├── Microsoft.Dnx.ApplicationHost.FunctionalTests.xproj │ └── project.json ├── Microsoft.Dnx.CommonTestUtils │ ├── DirTree.cs │ ├── DisposableDir.cs │ ├── DnuTestUtils.cs │ ├── DnxRuntimeFixture.cs │ ├── Microsoft.Dnx.CommonTestUtils.xproj │ ├── PathHelpers.cs │ ├── TestUtils.cs │ └── project.json ├── Microsoft.Dnx.Compilation.CSharp.Tests │ ├── AfterCompileContextFacts.cs │ ├── BeforeCompileContextFacts.cs │ ├── CompilationContextFacts.cs │ ├── FakeCacheContextAccessor.cs │ ├── FakeCompilerOptions.cs │ ├── FakeMetadataReference.cs │ ├── FakeNamedDependencyProvider.cs │ ├── Microsoft.Dnx.Compilation.CSharp.Tests.xproj │ ├── ProjectContextFacts.cs │ ├── ProjectExtensionsFacts.cs │ ├── ResourceForCultureTest.cs │ ├── RoslynCompilerTest.cs │ ├── SigningFacts.cs │ ├── SnkUtilsFacts.cs │ ├── keyfile.snk │ └── project.json ├── Microsoft.Dnx.Compilation.Tests │ ├── CreateCSharpManifestResourceNameFacts.cs │ ├── Microsoft.Dnx.Compilation.Tests.xproj │ └── project.json ├── Microsoft.Dnx.DesignTimeHost.FunctionalTests │ ├── DesignTimeHostCompilerTests.cs │ ├── DthStartupTests.cs │ ├── Microsoft.Dnx.DesignTimeHost.FunctionalTests.xproj │ └── project.json ├── Microsoft.Dnx.DesignTimeHost.Tests │ ├── Microsoft.Dnx.DesignTimeHost.Tests.xproj │ ├── PluginHandlerFacts.cs │ ├── PluginMessageBrokerFacts.cs │ ├── ProtocolManagerTests.cs │ ├── TestAssembly.cs │ ├── TestAssemblyLoadContext.cs │ ├── TestServiceProvider.cs │ └── project.json ├── Microsoft.Dnx.Runtime.FunctionalTests │ ├── Microsoft.Dnx.Runtime.FunctionalTests.xproj │ ├── ProjectFacts.cs │ ├── ProjectFileGlobbing │ │ ├── FileGlobbingTestBase.cs │ │ ├── ProjectFilesCollectionTests.cs │ │ └── ProjectFilesTests.cs │ ├── ResourcesTests │ │ └── ResourceResolverFacts.cs │ ├── ServiceBreadcrumbsFacts.cs │ ├── Utilities │ │ ├── AssertHelpers.cs │ │ └── PathHelper.cs │ └── project.json ├── Microsoft.Dnx.Runtime.Tests │ ├── CompilerOptionsFacts.cs │ ├── DependencyManagement │ │ ├── FrameworkReferenceResolverFacts.cs │ │ ├── GacDependencyResolverFacts.cs │ │ ├── PackageDependencyProviderFacts.cs │ │ └── ProjectReferenceDependencyResolverFacts.cs │ ├── FileGlobbing │ │ ├── PatternsGroupFacts.cs │ │ ├── PatternsGroupTestHelper.cs │ │ └── ProjectFilesCollectionFacts.cs │ ├── FrameworkNameHelperFacts.cs │ ├── Host │ │ └── RuntimeSelectionFacts.cs │ ├── JsonBufferFacts.cs │ ├── JsonDeserializerFacts.cs │ ├── LibraryManagerFacts.cs │ ├── LockFileReaderFacts.cs │ ├── Microsoft.Dnx.Runtime.Tests.xproj │ ├── NativeLibPathUitlsFacts.cs │ ├── NuGet │ │ └── SemanticVersionTest.cs │ ├── PathUtilityFacts.cs │ ├── ProjectExtensionsFacts.cs │ ├── ProjectFacts.cs │ ├── SemanticVersionRangeFacts.cs │ ├── ServiceProviderFacts.cs │ ├── ServicingFacts.cs │ ├── TestSample │ │ └── project.lock.sample │ ├── VersionUtilityFacts.cs │ └── project.json ├── Microsoft.Dnx.Testing.Framework │ ├── Constants │ │ ├── TestConstants.cs │ │ └── TestEnvironmentNames.cs │ ├── Directory │ │ ├── Dir.cs │ │ ├── DirAssert.cs │ │ ├── DirDiff.cs │ │ ├── DirItem.cs │ │ └── DirMismatchException.cs │ ├── DnxSdk │ │ ├── Dnu.cs │ │ ├── DnuPackOutput.cs │ │ ├── Dnx.cs │ │ ├── DnxSdk.cs │ │ ├── Dth.cs │ │ └── Dth │ │ │ ├── DthMessage.cs │ │ │ ├── DthMessageCollectionExtension.cs │ │ │ ├── DthMessageExtension.cs │ │ │ ├── DthMessageTypes.cs │ │ │ ├── DthTestClient.cs │ │ │ ├── DthTestServer.cs │ │ │ ├── JArrayExtensions.cs │ │ │ └── JObjectExtensions.cs │ ├── DnxSdkFunctionalBase │ │ ├── DnxSdkFunctionalTestBase.cs │ │ └── DnxSdkFunctionalTestFixtureBase.cs │ ├── Exec.cs │ ├── ExecResult.cs │ ├── JsonUtils.cs │ ├── LockFileExtensions.cs │ ├── Microsoft.Dnx.Testing.Framework.xproj │ ├── ProjectExtensions.cs │ ├── ProjectResolver │ │ └── ProjectResolver.cs │ ├── Solution.cs │ ├── TestLogger.cs │ ├── TestProjectsRepository.cs │ ├── TestUtils.cs │ ├── TraceTestAttribute.cs │ └── project.json ├── Microsoft.Dnx.Testing.SampleTests │ ├── DnuCommonUtilTests.cs │ ├── DnuPublishTests.cs │ ├── DnuRestoreTests.cs │ ├── Microsoft.Dnx.Testing.SampleTests.xproj │ ├── SampleTestCollection.cs │ ├── SampleTestFixture.cs │ └── project.json ├── Microsoft.Dnx.Tooling.FunctionalTests │ ├── DnuCommandsTests.cs │ ├── DnuFeedsTests.cs │ ├── DnuInstallTests.cs │ ├── DnuListTests.cs │ ├── DnuPackAdditionalFilesTests.cs │ ├── DnuPackTests.Old.cs │ ├── DnuPackTests.cs │ ├── DnuPackagesAddTests.cs │ ├── DnuPublishTests.Old.cs │ ├── DnuPublishTests.cs │ ├── DnuPublishWrappedTests.cs │ ├── DnuRestoreTests.Old.cs │ ├── DnuRestoreTests.cs │ ├── DnuRuntimeRestoreTests.cs │ ├── DnuTestEnvironment.cs │ ├── DnuWrapTests.cs │ ├── InstallBuilderTests.cs │ ├── Microsoft.Dnx.Tooling.FunctionalTests.xproj │ ├── PackageManagerFunctionalTestCollection.cs │ ├── PackageManagerFunctionalTestFixture.cs │ ├── ProjectResolverTests.cs │ └── project.json ├── Microsoft.Dnx.Tooling.Tests │ ├── DependencyContextFacts.cs │ ├── InstallBuilderFacts.cs │ ├── LockFileUtilsFacts.cs │ ├── Microsoft.Dnx.Tooling.Tests.xproj │ ├── NuGet │ │ └── Authoring │ │ │ ├── ManifestMetadataTests.cs │ │ │ └── ManifestTests.cs │ ├── RuntimeRestoreFacts.cs │ └── project.json ├── Microsoft.Extensions.CommandLineUtils.Sources.Tests │ ├── CommandLineApplicationTests.cs │ ├── Microsoft.Extensions.CommandLineUtils.Sources.Tests.xproj │ └── project.json ├── Microsoft.Extensions.PackageManager.Tests │ └── PackageSourceUtilsFacts.cs ├── dnx.tests │ ├── argument_search_tests.cpp │ ├── dnx.tests.vcxproj │ ├── dnx.tests.vcxproj.filters │ ├── dnxtests.cpp │ ├── pal.tests.cpp │ ├── parameter_expansion_tests.cpp │ └── stdafx.h └── gtest-1.7.0 │ ├── CHANGES │ ├── CMakeLists.txt │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── Makefile.am │ ├── Makefile.in │ ├── README │ ├── aclocal.m4 │ ├── build-aux │ ├── config.guess │ ├── config.h.in │ ├── config.sub │ ├── depcomp │ ├── install-sh │ ├── ltmain.sh │ └── missing │ ├── cmake │ └── internal_utils.cmake │ ├── codegear │ ├── gtest.cbproj │ ├── gtest.groupproj │ ├── gtest_all.cc │ ├── gtest_link.cc │ ├── gtest_main.cbproj │ └── gtest_unittest.cbproj │ ├── configure │ ├── configure.ac │ ├── fused-src │ └── gtest │ │ ├── gtest-all.cc │ │ ├── gtest.h │ │ └── gtest_main.cc │ ├── include │ └── gtest │ │ ├── gtest-death-test.h │ │ ├── gtest-message.h │ │ ├── gtest-param-test.h │ │ ├── gtest-param-test.h.pump │ │ ├── gtest-printers.h │ │ ├── gtest-spi.h │ │ ├── gtest-test-part.h │ │ ├── gtest-typed-test.h │ │ ├── gtest.h │ │ ├── gtest_pred_impl.h │ │ ├── gtest_prod.h │ │ └── internal │ │ ├── gtest-death-test-internal.h │ │ ├── gtest-filepath.h │ │ ├── gtest-internal.h │ │ ├── gtest-linked_ptr.h │ │ ├── gtest-param-util-generated.h │ │ ├── gtest-param-util-generated.h.pump │ │ ├── gtest-param-util.h │ │ ├── gtest-port.h │ │ ├── gtest-string.h │ │ ├── gtest-tuple.h │ │ ├── gtest-tuple.h.pump │ │ ├── gtest-type-util.h │ │ └── gtest-type-util.h.pump │ ├── m4 │ ├── acx_pthread.m4 │ ├── gtest.m4 │ ├── libtool.m4 │ ├── ltoptions.m4 │ ├── ltsugar.m4 │ ├── ltversion.m4 │ └── lt~obsolete.m4 │ ├── make │ └── Makefile │ ├── msvc │ ├── Debug │ │ ├── gtest-all.obj │ │ ├── gtest.lib │ │ ├── gtest.log │ │ ├── gtest.pdb │ │ └── gtest.tlog │ │ │ ├── CL.command.1.tlog │ │ │ ├── CL.read.1.tlog │ │ │ ├── CL.write.1.tlog │ │ │ ├── Lib-link.read.1.tlog │ │ │ ├── Lib-link.write.1.tlog │ │ │ ├── gtest.lastbuildstate │ │ │ └── lib.command.1.tlog │ ├── gtest-md.sln │ ├── gtest-md.vcproj │ ├── gtest.sln │ ├── gtest.vcproj │ ├── gtest.vcxproj │ ├── gtest.vcxproj.filters │ ├── gtest_main-md.vcproj │ ├── gtest_main.vcproj │ ├── gtest_prod_test-md.vcproj │ ├── gtest_prod_test.vcproj │ ├── gtest_unittest-md.vcproj │ └── gtest_unittest.vcproj │ ├── samples │ ├── prime_tables.h │ ├── sample1.cc │ ├── sample1.h │ ├── sample10_unittest.cc │ ├── sample1_unittest.cc │ ├── sample2.cc │ ├── sample2.h │ ├── sample2_unittest.cc │ ├── sample3-inl.h │ ├── sample3_unittest.cc │ ├── sample4.cc │ ├── sample4.h │ ├── sample4_unittest.cc │ ├── sample5_unittest.cc │ ├── sample6_unittest.cc │ ├── sample7_unittest.cc │ ├── sample8_unittest.cc │ └── sample9_unittest.cc │ ├── scripts │ ├── fuse_gtest_files.py │ ├── gen_gtest_pred_impl.py │ ├── gtest-config.in │ ├── pump.py │ └── test │ │ └── Makefile │ ├── src │ ├── gtest-all.cc │ ├── gtest-death-test.cc │ ├── gtest-filepath.cc │ ├── gtest-internal-inl.h │ ├── gtest-port.cc │ ├── gtest-printers.cc │ ├── gtest-test-part.cc │ ├── gtest-typed-test.cc │ ├── gtest.cc │ └── gtest_main.cc │ ├── test │ ├── gtest-death-test_ex_test.cc │ ├── gtest-death-test_test.cc │ ├── gtest-filepath_test.cc │ ├── gtest-linked_ptr_test.cc │ ├── gtest-listener_test.cc │ ├── gtest-message_test.cc │ ├── gtest-options_test.cc │ ├── gtest-param-test2_test.cc │ ├── gtest-param-test_test.cc │ ├── gtest-param-test_test.h │ ├── gtest-port_test.cc │ ├── gtest-printers_test.cc │ ├── gtest-test-part_test.cc │ ├── gtest-tuple_test.cc │ ├── gtest-typed-test2_test.cc │ ├── gtest-typed-test_test.cc │ ├── gtest-typed-test_test.h │ ├── gtest-unittest-api_test.cc │ ├── gtest_all_test.cc │ ├── gtest_break_on_failure_unittest.py │ ├── gtest_break_on_failure_unittest_.cc │ ├── gtest_catch_exceptions_test.py │ ├── gtest_catch_exceptions_test_.cc │ ├── gtest_color_test.py │ ├── gtest_color_test_.cc │ ├── gtest_env_var_test.py │ ├── gtest_env_var_test_.cc │ ├── gtest_environment_test.cc │ ├── gtest_filter_unittest.py │ ├── gtest_filter_unittest_.cc │ ├── gtest_help_test.py │ ├── gtest_help_test_.cc │ ├── gtest_list_tests_unittest.py │ ├── gtest_list_tests_unittest_.cc │ ├── gtest_main_unittest.cc │ ├── gtest_no_test_unittest.cc │ ├── gtest_output_test.py │ ├── gtest_output_test_.cc │ ├── gtest_output_test_golden_lin.txt │ ├── gtest_pred_impl_unittest.cc │ ├── gtest_premature_exit_test.cc │ ├── gtest_prod_test.cc │ ├── gtest_repeat_test.cc │ ├── gtest_shuffle_test.py │ ├── gtest_shuffle_test_.cc │ ├── gtest_sole_header_test.cc │ ├── gtest_stress_test.cc │ ├── gtest_test_utils.py │ ├── gtest_throw_on_failure_ex_test.cc │ ├── gtest_throw_on_failure_test.py │ ├── gtest_throw_on_failure_test_.cc │ ├── gtest_uninitialized_test.py │ ├── gtest_uninitialized_test_.cc │ ├── gtest_unittest.cc │ ├── gtest_xml_outfile1_test_.cc │ ├── gtest_xml_outfile2_test_.cc │ ├── gtest_xml_outfiles_test.py │ ├── gtest_xml_output_unittest.py │ ├── gtest_xml_output_unittest_.cc │ ├── gtest_xml_test_utils.py │ ├── production.cc │ └── production.h │ └── xcode │ ├── Config │ ├── DebugProject.xcconfig │ ├── FrameworkTarget.xcconfig │ ├── General.xcconfig │ ├── ReleaseProject.xcconfig │ ├── StaticLibraryTarget.xcconfig │ └── TestTarget.xcconfig │ ├── Resources │ └── Info.plist │ ├── Samples │ └── FrameworkSample │ │ ├── Info.plist │ │ ├── WidgetFramework.xcodeproj │ │ └── project.pbxproj │ │ ├── runtests.sh │ │ ├── widget.cc │ │ ├── widget.h │ │ └── widget_test.cc │ ├── Scripts │ ├── runtests.sh │ └── versiongenerate.py │ └── gtest.xcodeproj │ └── project.pbxproj └── tools ├── Key.snk └── Microsoft.Dnx.TestHost.UI ├── App.xaml ├── App.xaml.cs ├── MainWindow.xaml ├── MainWindow.xaml.cs ├── MainWindowViewModel.cs ├── Microsoft.Dnx.TestHost.UI.csproj ├── Properties └── AssemblyInfo.cs ├── RelayCommand.cs └── packages.config /.gitignore: -------------------------------------------------------------------------------- 1 | [Oo]bj/ 2 | [Bb]in/ 3 | .nuget/ 4 | _ReSharper.*/ 5 | packages/ 6 | artifacts/ 7 | PublishProfiles/ 8 | *.user 9 | *.suo 10 | *.cache 11 | *.docstates 12 | _ReSharper.* 13 | nuget.exe 14 | *net45.csproj 15 | *k10.csproj 16 | *.psess 17 | *.vsp 18 | *.pidb 19 | *.userprefs 20 | *DS_Store 21 | *.ncrunchsolution 22 | *.*sdf 23 | *.ipch 24 | *.aps 25 | *.opendb 26 | /KRuntime.sln.ide 27 | /*.vspx 28 | *.metaproj* 29 | debugSettings.json 30 | project.lock.json 31 | version.h 32 | TestResults/ 33 | DNX.VC.db 34 | 35 | # Profiler result files, just in case they are left lying around :) 36 | .vs/ 37 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "submodules/FileSystem"] 2 | path = submodules/FileSystem 3 | url = https://github.com/aspnet/FileSystem.git 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: csharp 2 | sudo: required 3 | dist: trusty 4 | env: 5 | - MONO_THREADS_PER_CPU=2000 6 | mono: 7 | - 4.0.5 8 | os: 9 | - linux 10 | - osx 11 | addons: 12 | apt: 13 | packages: 14 | - gettext 15 | - libcurl4-openssl-dev 16 | - libicu-dev 17 | - libssl-dev 18 | - libunwind8 19 | - zlib1g 20 | before_install: 21 | - if test "$TRAVIS_OS_NAME" == "osx"; then brew update; brew install icu4c; fi 22 | script: 23 | - ./build.sh --quiet verify 24 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Contributing 2 | ====== 3 | 4 | Information on contributing to this repo is in the [Contributing Guide](https://github.com/aspnet/Home/blob/dev/CONTRIBUTING.md) in the Home repo. 5 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) .NET Foundation. All rights reserved. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use 4 | these files except in compliance with the License. You may obtain a copy of the 5 | License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software distributed 10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the 12 | specific language governing permissions and limitations under the License. 13 | -------------------------------------------------------------------------------- /NuGet.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | DNX 2 | === 3 | 4 | ## This repository is obsolete and no longer used or maintained. 5 | 6 | 7 | DNX and DNVM have been replaced by the new .NET CLI. See: 8 | 9 | - https://docs.microsoft.com/dotnet/articles/standard/getting-started 10 | - http://github.com/dotnet/cli 11 | 12 | As a result, we're not accepting anymore changes to this project. Please file any new issues on http://github.com/dotnet/cli. 13 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | init: 2 | - git config --global core.autocrlf true 3 | build_script: 4 | - build.cmd --quiet verify 5 | clone_depth: 1 6 | os: Visual Studio 2015 CTP 7 | test: off 8 | deploy: off -------------------------------------------------------------------------------- /build/batchcopy.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | set SRC=%1 4 | set DST=%2 5 | 6 | set SRC=%SRC:/=\% 7 | set DST=%DST:/=\% 8 | 9 | if not exist %SRC% goto end 10 | 11 | echo run: xcopy /F /Y /I %SRC% %DST% 12 | xcopy /F /Y /I %SRC% %DST% 13 | 14 | :end 15 | -------------------------------------------------------------------------------- /build/batchcopy.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "Copy From: $1" 4 | echo " To: $2" 5 | 6 | src=${1//\\//} 7 | dst=${2//\\//} 8 | 9 | if [ ! -d "$dst" ]; then 10 | mkdir -p $dst 11 | fi 12 | 13 | # Copy the files, if they exist 14 | if ls $src 1> /dev/null 2>&1; then 15 | cp $src $dst 16 | rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi 17 | fi 18 | -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src", 4 | "submodules/FileSystem/src" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /misc/AppHostServicesProjects/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src", 4 | "..\\..\\src" 5 | ] 6 | } -------------------------------------------------------------------------------- /misc/AppHostServicesProjects/src/GetExports/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Extensions.CompilationAbstractions; 3 | 4 | namespace GetExports 5 | { 6 | public class Program 7 | { 8 | public void Main(string[] args) 9 | { 10 | var exporter = CompilationServices.Default.LibraryExporter; 11 | var projectExport = exporter.GetAllExports("GetExports"); 12 | var packageExport = exporter.GetAllExports("Microsoft.Extensions.CompilationAbstractions"); 13 | 14 | Console.WriteLine($"Project: {projectExport.MetadataReferences[0].Name}"); 15 | Console.WriteLine($"Package: {packageExport.MetadataReferences[0].Name}"); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /misc/AppHostServicesProjects/src/GetExports/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Extensions.CompilationAbstractions": "1.0.0-*", 4 | }, 5 | "frameworks": { 6 | "dnx451": {}, 7 | "dnxcore50": { 8 | "dependencies": { 9 | "System.Console": "4.0.0-*" 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /misc/ApplicationHostTestProjects/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src", 4 | "..\\..\\src" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /misc/ApplicationHostTestProjects/src/CompilationException/program.cs: -------------------------------------------------------------------------------- 1 | class Program 2 | { 3 | public static void Main() 4 | { 5 | System.Console1.WriteLine("Test"); 6 | } 7 | } -------------------------------------------------------------------------------- /misc/ApplicationHostTestProjects/src/CompilationException/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "frameworks": { 3 | "dnx451": { }, 4 | "dnxcore50": { 5 | "dependencies": { 6 | "System.Runtime": "4.1.0-*" 7 | } 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/ApplicationHostTestProjects/src/CompilationExceptionInMain/program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using Microsoft.Dnx.Compilation; 5 | 6 | class DummyCompilationException : Exception, ICompilationException 7 | { 8 | public IEnumerable CompilationFailures => Enumerable.Empty(); 9 | } 10 | 11 | class Program 12 | { 13 | public static void Main() 14 | { 15 | throw new DummyCompilationException(); 16 | } 17 | } -------------------------------------------------------------------------------- /misc/ApplicationHostTestProjects/src/CompilationExceptionInMain/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Extensions.CompilationAbstractions": "1.0.0-*" 4 | }, 5 | "frameworks": { 6 | "dnx451": { }, 7 | "dnxcore50": { 8 | "dependencies": { 9 | } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/AssemblyInfo/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src" 4 | ] 5 | } -------------------------------------------------------------------------------- /misc/AssemblyInfo/src/Test/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": "Hello title", 3 | "description": "Hello\r\ndescription", 4 | "language": "en", 5 | "copyright": "Copyright \u00a9", 6 | "version": "1.2.3-*", 7 | "commands": { 8 | "HelloWorld": "HelloWorld" 9 | }, 10 | "frameworks": { 11 | "dnx451": { }, 12 | "dnxcore50": { 13 | "dependencies": { 14 | "System.Console": "4.0.0-*" 15 | } 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /misc/BootstrapperSolution/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "src" ] 3 | } 4 | -------------------------------------------------------------------------------- /misc/BootstrapperSolution/src/TesterProgram/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TesterProgram 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | throw new Exception("foo"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/BootstrapperSolution/src/TesterProgram/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | }, 4 | 5 | "commands": { 6 | "TesterProgram": "TesterProgram" 7 | }, 8 | 9 | "frameworks": { 10 | "dnx451": { }, 11 | "dnxcore50": { 12 | "dependencies": { 13 | "Microsoft.CSharp": "4.0.1-*" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /misc/CompileModuleWithDependencies/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src", 4 | "..\\..\\src" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /misc/CompileModuleWithDependencies/src/A.CompileModule/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Dnx.Compilation.CSharp.Abstractions": "1.0.0-*" 4 | }, 5 | "frameworks": { 6 | "dnx451": { 7 | "frameworkAssemblies": { 8 | "System.Runtime": "", 9 | "System.Collections": "", 10 | "System.Text.Encoding": "", 11 | "System.Threading.Tasks": "" 12 | } 13 | }, 14 | "dnxcore50": { } 15 | } 16 | } -------------------------------------------------------------------------------- /misc/CompileModuleWithDependencies/src/A/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace A 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | var foo = new Foo(); 10 | foo.Bar(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /misc/CompileModuleWithDependencies/src/A/compiler/preprocess/CompileModule2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace A.compiler.preprocess 7 | { 8 | public class CompileModule2 : CompileModule 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /misc/CompileModuleWithDependencies/src/A/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "A.CompileModule": "1.0.0-*" 4 | }, 5 | "frameworks": { 6 | "dnx451": {}, 7 | "dnxcore50": { 8 | "dependencies": { 9 | "System.Console": "4.0.0-*" 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /misc/DependencyGraphsFeed/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": ["src"] 3 | } -------------------------------------------------------------------------------- /misc/DependencyGraphsFeed/src/DependencyA/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | "dependencies": { 4 | "DependencyB": "2.0.0" 5 | }, 6 | "frameworks": { 7 | "dnx451": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/DependencyGraphsFeed/src/DependencyB/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "2.0.0", 3 | "frameworks": { 4 | "dnx451": {} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /misc/DependencyGraphsProject/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": ["src"] 3 | } -------------------------------------------------------------------------------- /misc/DependencyGraphsProject/src/SimpleChain/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | "dependencies": { 4 | "DependencyA": "1.0.0" 5 | }, 6 | "frameworks": { 7 | "dnx451": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/DependencyTargets/NuGet.Config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /misc/DependencyTargets/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": "packages", 3 | "projects": [ "src", "test" ] 4 | } 5 | -------------------------------------------------------------------------------- /misc/DependencyTargets/src/A/Helper.cs: -------------------------------------------------------------------------------- 1 | namespace A 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | #if PACKAGE 8 | return "This is Package A"; 9 | #else 10 | return "This is Project A"; 11 | #endif 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /misc/DependencyTargets/src/A/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "configurations": { 5 | "package": { 6 | "compilationOptions": { "define": [ "PACKAGE" ] } 7 | } 8 | }, 9 | 10 | "frameworks": { 11 | "dnx451": { }, 12 | "dnxcore50": { 13 | "dependencies": { 14 | "System.Runtime": "4.0.21-*" 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /misc/DependencyTargets/src/App/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace App 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | Console.WriteLine($"A: {A.Helper.GetValue()}"); 10 | Console.WriteLine($"B: {B.Helper.GetValue()}"); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /misc/DependencyTargets/src/App/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "dependencies": { 5 | "A": { "target": "project" }, 6 | "B": { 7 | "version": "1.0.0-*", 8 | "target": "package" 9 | } 10 | }, 11 | 12 | "commands": { 13 | "App": "App" 14 | }, 15 | 16 | "frameworks": { 17 | "dnx451": { }, 18 | "dnxcore50": { 19 | "dependencies": { 20 | "System.Console": "4.0.0-*" 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /misc/DependencyTargets/src/B/Helper.cs: -------------------------------------------------------------------------------- 1 | namespace B 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | #if PACKAGE 8 | return "This is Package B"; 9 | #else 10 | return "This is Project B"; 11 | #endif 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /misc/DependencyTargets/src/B/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "configurations": { 5 | "package": { 6 | "compilationOptions": { "define": [ "PACKAGE" ] } 7 | } 8 | }, 9 | 10 | "frameworks": { 11 | "dnx451": { }, 12 | "dnxcore50": { 13 | "dependencies": { 14 | "System.Runtime": "4.0.21-*" 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /misc/DllImportTestProjects/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src" 4 | ] 5 | } -------------------------------------------------------------------------------- /misc/DllImportTestProjects/lib/build-darwin.sh: -------------------------------------------------------------------------------- 1 | clang++ -fPIC -shared code.cpp -g -o nativelib.dylib -arch i386 -arch x86_64 2 | cp nativelib.dylib ../src/NativeLib/runtimes/osx.10.11-x64/native/ 3 | cp nativelib.dylib ../src/NativeLib/runtimes/osx.10.10-x64/native/ 4 | cp nativelib.dylib ../src/NativeLib/runtimes/osx.10.9-x64/native/ 5 | -------------------------------------------------------------------------------- /misc/DllImportTestProjects/lib/build-linux.sh: -------------------------------------------------------------------------------- 1 | clang++-3.5 -fPIC -shared code.cpp -g -o ../src/NativeLib/runtimes/ubuntu-x64/native/libnativelib.so 2 | -------------------------------------------------------------------------------- /misc/DllImportTestProjects/lib/build.cmd: -------------------------------------------------------------------------------- 1 | msbuild .\nativelib.vcxproj /p:Configuration=Release /p:Platform=Win32 2 | msbuild .\nativelib.vcxproj /p:Configuration=Release /p:Platform=x64 3 | copy .\x64\Release\nativelib.dll ..\src\NativeLib\runtimes\win7-x64\native\ 4 | copy .\Release\nativelib.dll ..\src\NativeLib\runtimes\win7-x86\native\ -------------------------------------------------------------------------------- /misc/DllImportTestProjects/lib/code.cpp: -------------------------------------------------------------------------------- 1 | 2 | #if defined(_WIN32) 3 | #define EXPORTED_API __declspec(dllexport) 4 | #else 5 | #define EXPORTED_API 6 | #endif 7 | 8 | extern "C" EXPORTED_API int get_number() 9 | { 10 | return 42; 11 | } 12 | -------------------------------------------------------------------------------- /misc/DllImportTestProjects/lib/dllmain.cpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #define WIN32_LEAN_AND_MEAN 5 | #include 6 | 7 | BOOL APIENTRY DllMain( HMODULE hModule, 8 | DWORD ul_reason_for_call, 9 | LPVOID lpReserved 10 | ) 11 | { 12 | switch (ul_reason_for_call) 13 | { 14 | case DLL_PROCESS_ATTACH: 15 | case DLL_THREAD_ATTACH: 16 | case DLL_THREAD_DETACH: 17 | case DLL_PROCESS_DETACH: 18 | break; 19 | } 20 | return TRUE; 21 | } 22 | 23 | -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/NativeLib/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "frameworks": { 5 | "dnx451": {}, 6 | "dnxcore50": { 7 | "dependencies": { 8 | "System.Runtime": "4.1.0-*" 9 | } 10 | } 11 | }, 12 | 13 | "packInclude": { 14 | "runtimes/": "runtimes/**" 15 | } 16 | } -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/NativeLib/runtimes/osx.10.10-x64/native/nativelib.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/DllImportTestProjects/src/NativeLib/runtimes/osx.10.10-x64/native/nativelib.dylib -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/NativeLib/runtimes/osx.10.11-x64/native/nativelib.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/DllImportTestProjects/src/NativeLib/runtimes/osx.10.11-x64/native/nativelib.dylib -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/NativeLib/runtimes/osx.10.9-x64/native/nativelib.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/DllImportTestProjects/src/NativeLib/runtimes/osx.10.9-x64/native/nativelib.dylib -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/NativeLib/runtimes/ubuntu-x64/native/libnativelib.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/DllImportTestProjects/src/NativeLib/runtimes/ubuntu-x64/native/libnativelib.so -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/NativeLib/runtimes/win7-x64/native/nativelib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/DllImportTestProjects/src/NativeLib/runtimes/win7-x64/native/nativelib.dll -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/NativeLib/runtimes/win7-x86/native/nativelib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/DllImportTestProjects/src/NativeLib/runtimes/win7-x86/native/nativelib.dll -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/PackageReferenceTest/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "dependencies": { 5 | "NativeLib" : { "version" : "1.0.0", "target" : "package" }, 6 | "Microsoft.Extensions.PlatformAbstractions": "1.0.0-*" 7 | }, 8 | 9 | "compile" : "../*.cs", 10 | 11 | "frameworks": { 12 | "dnx451": {}, 13 | "dnxcore50": { 14 | "dependencies": { 15 | "System.Console": "4.0.0-*", 16 | "System.Runtime.InteropServices": "4.1.0-*" 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /misc/DllImportTestProjects/src/ProjectReferenceTest/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "dependencies": { 5 | "NativeLib" : "", 6 | "Microsoft.Extensions.PlatformAbstractions": "1.0.0-*" 7 | }, 8 | 9 | "compile" : "../*.cs", 10 | 11 | "frameworks": { 12 | "dnx451": {}, 13 | "dnxcore50": { 14 | "dependencies": { 15 | "System.Console": "4.0.0-*", 16 | "System.Runtime.InteropServices": "4.1.0-*" 17 | } 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /misc/DnuPublishTestApps/ConsoleAppReferencingWrappedProject/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "src" ] 3 | } -------------------------------------------------------------------------------- /misc/DnuPublishTestApps/ConsoleAppReferencingWrappedProject/src/ConsoleAppReferencingWrappedProject/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace ConsoleAppReferencingWrappedProject 7 | { 8 | public class Program 9 | { 10 | public void Main(string[] args) 11 | { 12 | Console.WriteLine($"Using types from {typeof(Net45Library.Class1).AssemblyQualifiedName}"); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /misc/DnuPublishTestApps/ConsoleAppReferencingWrappedProject/src/ConsoleAppReferencingWrappedProject/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | 4 | "dependencies": { 5 | }, 6 | 7 | "frameworks": { 8 | "dnx451": { 9 | "dependencies": { 10 | "Net45Library": "1.0.0-*" 11 | } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /misc/DnuPublishTestApps/ConsoleAppReferencingWrappedProject/src/Net45Library/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Net45Library 8 | { 9 | public class Class1 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/ExternalAssemblies/LibraryDelta.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/DnuWrapTestSolutions/ConsoleApp1/ExternalAssemblies/LibraryDelta.dll -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/LibraryBeta.PCL.Desktop/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace LibraryBeta.PCL.Desktop 8 | { 9 | public class Class1 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/LibraryBeta.PCL/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace LibraryBeta.PCL 7 | { 8 | public class Class1 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/LibraryEpsilon/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace LibraryEpsilon 8 | { 9 | public class Class1 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/LibraryGamma/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace LibraryGamma 8 | { 9 | public class Class1 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/LibraryGamma/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "src", "test" ] 3 | } -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/src/ConsoleApp1/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "dependencies": { 4 | "LibraryAlpha": "1.0.0-*" 5 | }, 6 | "commands": { 7 | "run" : "run" 8 | }, 9 | "frameworks" : { 10 | "dnx451" : { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/src/LibraryAlpha/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace LibraryAlpha 4 | { 5 | public class Class1 6 | { 7 | public Class1() 8 | { 9 | 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/src/LibraryAlpha/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "dependencies": { 4 | "LibraryBeta": "1.0.0-*" 5 | }, 6 | 7 | "frameworks" : { 8 | "dnx451" : { 9 | "dependencies": { 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/ConsoleApp1/src/LibraryBeta/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "dependencies": { 4 | }, 5 | 6 | "frameworks" : { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/WrapAndPublish/NuGet.Config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/WrapAndPublish/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src", 4 | "test", 5 | "wrap" 6 | ] 7 | } -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/WrapAndPublish/src/ClassLibrary/Helper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ClassLibrary 8 | { 9 | public static class Helper 10 | { 11 | public static string GetMessage() 12 | { 13 | return "Hello from the wrapped project"; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/WrapAndPublish/src/ClassLibrary/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/WrapAndPublish/src/DnxConsoleApp/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using ClassLibrary; 6 | 7 | namespace DnxConsoleApp 8 | { 9 | public class Program 10 | { 11 | public void Main(string[] args) 12 | { 13 | Console.WriteLine(Helper.GetMessage()); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/WrapAndPublish/src/DnxConsoleApp/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "description": "DnxConsoleApp Console Application", 4 | "authors": [ "anurse" ], 5 | "tags": [ "" ], 6 | "projectUrl": "", 7 | "licenseUrl": "", 8 | 9 | "dependencies": { 10 | }, 11 | 12 | "commands": { 13 | "DnxConsoleApp": "DnxConsoleApp" 14 | }, 15 | 16 | "frameworks": { 17 | "dnx451": { 18 | "dependencies": { 19 | "ClassLibrary": "1.0.0-*" 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /misc/DnuWrapTestSolutions/WrapAndPublish/wrap/ClassLibrary/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "frameworks": { 4 | "net451": { 5 | "wrappedProject": "../../src/ClassLibrary/ClassLibrary.csproj", 6 | "bin": { 7 | "assembly": "../../src/ClassLibrary/obj/{configuration}/ClassLibrary.dll", 8 | "pdb": "../../src/ClassLibrary/obj/{configuration}/ClassLibrary.pdb" 9 | }, 10 | "dependencies": { 11 | "Newtonsoft.Json": "4.0.1" 12 | } 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /misc/DthTestProjects/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": ["src"] 3 | } 4 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/BrokenProjectPathSample/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "EmptyLibrary": "" 4 | }, 5 | "frameworks": { 6 | "dnxcore50": { } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/EmptyConsoleApp/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Misc.DthTestProjects.EmptyConsoleApp 4 | { 5 | public class Program 6 | { 7 | public int Main(string[] args) 8 | { 9 | Console.WriteLine("Hello, world."); 10 | return 0; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/EmptyConsoleApp/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { }, 3 | "frameworks": { 4 | "dnxcore50": { 5 | "dependencies": { 6 | "System.Console": "4.0.0-*" 7 | } 8 | }, 9 | "dnx451": { } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/EmptyLibrary/Class.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Misc.DthTestProjects.EmptyLibrary 4 | { 5 | public class Class 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/EmptyLibrary/project-update.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { }, 3 | "frameworks": { 4 | "dnxcore50": { 5 | "dependencies":{ 6 | "System.Runtime": "4.0.21-beta-*", 7 | "System.Console": "4.0.0-beta-*" 8 | } 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/EmptyLibrary/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { }, 3 | "frameworks": { 4 | "dnxcore50": { 5 | "dependencies":{ 6 | "System.Runtime": "4.1.0-*" 7 | } 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/FailReleaseProject/Program.cs: -------------------------------------------------------------------------------- 1 | namespace FailReleaseProject 2 | { 3 | public class Program 4 | { 5 | public int Main(string[] args) 6 | { 7 | #if RELEASE 8 | // fail the compilation under Release configuration 9 | i 10 | #endif 11 | return 0; 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/FailReleaseProject/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "frameworks": { 3 | "dnxcore50": { 4 | "dependencies": { 5 | "System.Runtime": "4.1.0-*" 6 | } 7 | } 8 | }, 9 | "dependencies": { 10 | "Microsoft.NETCore.Platforms": "1.0.1-*" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/IncompatiblePackageSample/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Newtonsoft.Json": "4.5.11" 4 | }, 5 | "frameworks": { 6 | "dnxcore50": { } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/UnresolvedPackageSample/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "NoSuchPackage": "1.0.0", 4 | "Microsoft.NETCore.Platforms": "1.0.1-*" 5 | }, 6 | "frameworks": { 7 | "dnx451": { } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/DthTestProjects/src/UnresolvedProjectSample/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "EmptyLibrary": "", 4 | "Microsoft.NETCore.Platforms": "1.0.1-*" 5 | }, 6 | "frameworks": { 7 | "dnx451": { } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/DthUpdateSearchPathSample/ext/Newtonsoft.Json/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "6.0.8", 3 | "dependencies": { 4 | }, 5 | "frameworks": { 6 | "dnx451": { } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/DthUpdateSearchPathSample/home/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src", 4 | "../ext" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /misc/DthUpdateSearchPathSample/home/src/MainProject/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Newtonsoft.Json": "6.0.8" 4 | }, 5 | "frameworks": { 6 | "dnx451": { } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/EcmaEntryPoint/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src", 4 | "..\\..\\src" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /misc/EcmaEntryPoint/src/EcmaEntryPoint/Startup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace EcmaEntryPoint 5 | { 6 | public static class Startup 7 | { 8 | public static void Main(string[] args) 9 | { 10 | var a = typeof(Startup).GetTypeInfo().Assembly; 11 | Console.WriteLine("ECMA EntryPoint Ran"); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /misc/EcmaEntryPoint/src/EcmaEntryPoint/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "emitEntryPoint": true 4 | }, 5 | "dependencies": { 6 | "Microsoft.NETCore.Platforms": "1.0.1-*" 7 | }, 8 | "frameworks": { 9 | "dnx451": {}, 10 | "dnxcore50": { 11 | "dependencies": { 12 | "System.Console": "4.0.0-*", 13 | "System.Reflection.Extensions": "4.0.1-*" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /misc/GlobalJsonInProjectDir/Project/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "sdk": { 3 | "version": "1.0.0-beta7" 4 | } 5 | } -------------------------------------------------------------------------------- /misc/GlobalJsonInProjectDir/Project/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": {}, 3 | "frameworks": { 4 | "dnx451": {}, 5 | "dnxcore50": {} 6 | } 7 | } -------------------------------------------------------------------------------- /misc/HelloWorld/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src" 4 | ] 5 | } -------------------------------------------------------------------------------- /misc/HelloWorld/src/HelloWorld/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using Newtonsoft.Json; 4 | 5 | namespace HelloWorld 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | Console.WriteLine("Hello World"); 12 | 13 | // Use an API for something that isn't in the DNX 14 | JsonConvert.SerializeObject(new { X = 1, Y = 20 }); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /misc/HelloWorld/src/HelloWorld/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": { 3 | "HelloWorld": "HelloWorld" 4 | }, 5 | "dependencies": { 6 | "Newtonsoft.Json": "7.0.1" 7 | }, 8 | "frameworks": { 9 | "dnx451": { }, 10 | "dnxcore50": { 11 | "dependencies": { 12 | "System.Collections": "4.0.11-*", 13 | "System.Console": "4.0.0-*" 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /misc/HelloWorldWithWebRoot/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src" 4 | ] 5 | } -------------------------------------------------------------------------------- /misc/HelloWorldWithWebRoot/src/HelloWorldWithWebRoot/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using Newtonsoft.Json; 4 | 5 | namespace HelloWorldWithWebRoot 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | Console.WriteLine("Hello World"); 12 | 13 | // Use an API for something that isn't in the DNX 14 | JsonConvert.SerializeObject(new { X = 1, Y = 20 }); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /misc/HelloWorldWithWebRoot/src/HelloWorldWithWebRoot/hosting.json: -------------------------------------------------------------------------------- 1 | { 2 | "webroot": "wwwroot" 3 | } -------------------------------------------------------------------------------- /misc/HelloWorldWithWebRoot/src/HelloWorldWithWebRoot/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": { 3 | "HelloWorld": "HelloWorld" 4 | }, 5 | "dependencies": { 6 | "Newtonsoft.Json": "7.0.1" 7 | }, 8 | "frameworks": { 9 | "dnx451": { }, 10 | "dnxcore50": { 11 | "dependencies": { 12 | "System.Collections": "4.0.11-*", 13 | "System.Console": "4.0.0-*" 14 | } 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /misc/HelloWorldWithWebRoot/src/HelloWorldWithWebRoot/wwwroot/somefile.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/HelloWorldWithWebRoot/src/HelloWorldWithWebRoot/wwwroot/somefile.txt -------------------------------------------------------------------------------- /misc/LockFileTestProjects/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "src" ] 3 | } 4 | -------------------------------------------------------------------------------- /misc/LockFileTestProjects/src/Dnx451AppReferencingNet40Lib/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Net40Lib; 3 | 4 | namespace Dnx451AppReferencingNet40Lib 5 | { 6 | public class Program 7 | { 8 | public void Main() 9 | { 10 | Console.WriteLine(HelloGetter.GetHello()); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /misc/LockFileTestProjects/src/Dnx451AppReferencingNet40Lib/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "dependencies": { 4 | "Net40Lib": "" 5 | }, 6 | "commands": { 7 | "run": "run" 8 | }, 9 | "frameworks" : { 10 | "dnx451" : { } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/LockFileTestProjects/src/Net40Lib/HelloGetter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Net40Lib 4 | { 5 | public static class HelloGetter 6 | { 7 | public static string GetHello() 8 | { 9 | return "Hello World"; 10 | } 11 | } 12 | 13 | public class Program 14 | { 15 | public void Main(string[] args) 16 | { 17 | Console.WriteLine((new Newtonsoft.Json.Linq.JObject()).ToString()); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /misc/LockFileTestProjects/src/Net40Lib/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "dependencies": { 4 | "Newtonsoft.Json": "6.0.6" 5 | }, 6 | 7 | "frameworks" : { 8 | "net40": { } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/MismatchedVersionCasing/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "src" ], 3 | "packages": "packages" 4 | } 5 | -------------------------------------------------------------------------------- /misc/MismatchedVersionCasing/src/A/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "frameworks": { 3 | "dnx451": { } 4 | }, 5 | "dependencies": { 6 | "Contentful.NET": "0.0.5-Alpha" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/NestProjectRestoreModel/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": ["src"] 3 | } 4 | -------------------------------------------------------------------------------- /misc/NestProjectRestoreModel/src/Main/Nest/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "frameworks": { 3 | "dnx451": { } 4 | }, 5 | "dependencies": { 6 | "Newtonsoft.Json": "6.0.8" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/NestProjectRestoreModel/src/Main/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "frameworks": { 3 | "dnx451": { } 4 | }, 5 | "dependencies": { 6 | "Newtonsoft.Json": "6.0.8" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/ProjectToProject/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ 3 | "src" 4 | ] 5 | } -------------------------------------------------------------------------------- /misc/ProjectToProject/src/P1/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using P2; 4 | 5 | namespace P1 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | new Derived().Test(); 12 | } 13 | } 14 | 15 | public class Derived : BaseClass 16 | { 17 | public override void Test() 18 | { 19 | Console.WriteLine("Derived.Test"); 20 | base.Test(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /misc/ProjectToProject/src/P1/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": { 3 | "P1": "P1" 4 | }, 5 | "dependencies": { 6 | "P2": "1.0.0-*" 7 | }, 8 | "frameworks": { 9 | "dnx451": { 10 | "frameworkAssemblies": { 11 | "System.Runtime": "" 12 | } 13 | }, 14 | "dnxcore50": { 15 | "dependencies": { 16 | "System.Collections": "4.0.11-*", 17 | "System.Console": "4.0.0-*" 18 | } 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /misc/ProjectToProject/src/P2/BaseClass.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | 4 | namespace P2 5 | { 6 | public class BaseClass 7 | { 8 | public virtual void Test() 9 | { 10 | Console.WriteLine("BaseClass.Test()"); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /misc/ProjectToProject/src/P2/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | }, 4 | "frameworks": { 5 | "net45": { 6 | 7 | }, 8 | "dotnet5.5": { 9 | "dependencies": { 10 | "System.Collections": "4.0.11-*", 11 | "System.Console": "4.0.0-*" 12 | } 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /misc/PublishRuntimeDependency/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.Platforms": "1.0.1-beta-23516", 4 | "System.Console": "4.0.0-beta-23516", 5 | "System.Net.Sockets": "4.1.0-beta-23516", 6 | "System.Net.Security": "4.0.0-beta-23516", 7 | "System.Runtime": "4.0.21-beta-23516", 8 | "System.Net.NetworkInformation": "4.1.0-beta-23516", 9 | "System.Net.WebSockets.Client": "4.0.0-beta-23516", 10 | "System.Data.SqlClient": "4.0.0-beta-23516", 11 | "System.Reflection.DispatchProxy": "4.0.1-beta-23516" 12 | }, 13 | "commands": { 14 | "PublishRuntimeDependency": "PublishRuntimeDependency" 15 | }, 16 | "frameworks": { 17 | "dnxcore50": { } 18 | } 19 | } -------------------------------------------------------------------------------- /misc/PublishWithDependency/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": "packages", 3 | "projects": [ "src" ] 4 | } 5 | -------------------------------------------------------------------------------- /misc/PublishWithDependency/src/A/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | "dependencies": { 4 | }, 5 | "packInclude": { 6 | "ref/": "ref/**/*", 7 | "lib/": "lib/**/*", 8 | "runtimes/": "runtimes/**/*.dll" 9 | }, 10 | "frameworks": { 11 | "dnx451": { 12 | }, 13 | "dnxcore50": { 14 | "dependencies": { 15 | "System.Runtime": "4.1.0-*" 16 | } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /misc/PublishWithDependency/src/App/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | "dependencies": { 4 | "A": "1.0.0" 5 | }, 6 | "frameworks": { 7 | "dnx451": { }, 8 | "dnxcore50": { } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/EmbeddedResources/compiler/resources/Basic.Test.html: -------------------------------------------------------------------------------- 1 |  2 | Basic Test 3 | -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/EmbeddedResources/compiler/resources/Hello.txt: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/ReadFromResources/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "src" ] 3 | } 4 | -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/ReadFromResources/src/TestClassLibrary/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyCulture("en-US")] 4 | -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/ReadFromResources/src/TestClassLibrary/TestClass.cs: -------------------------------------------------------------------------------- 1 | namespace TestClassLibrary 2 | { 3 | public class TestClass 4 | { 5 | public string Print() 6 | { 7 | return "In TestClass"; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/ReadFromResources/src/TestClassLibrary/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | }, 4 | "frameworks": { 5 | "dnx451": { }, 6 | "dnxcore50": { 7 | "dependencies": { 8 | "System.Console": "4.0.0-*", 9 | } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/someresources/OtherText.txt: -------------------------------------------------------------------------------- 1 | Other -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/testproject/owntext.txt: -------------------------------------------------------------------------------- 1 | Own -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/testproject/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "dependencies": { 4 | }, 5 | 6 | "frameworks": { 7 | "dnx451": { 8 | "dependencies": { 9 | } 10 | }, 11 | "dnxcore50": { 12 | "dependencies": { 13 | "System.Reflection": "4.0.0", 14 | "System.Console": "4.0.0-*" 15 | } 16 | } 17 | }, 18 | "resource": [ 19 | "*.resx", 20 | "subfolder/*.resx", 21 | "*.txt", 22 | "subfolder/*.txt", 23 | "../someresources/*.resx", 24 | "../someresources/*.txt" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /misc/ResourcesTestProjects/testproject/subfolder/nestedtext.txt: -------------------------------------------------------------------------------- 1 | nested -------------------------------------------------------------------------------- /misc/RuntimeRestore/README.md: -------------------------------------------------------------------------------- 1 | # DO NOT MOVE 2 | This folder is used by the DnuRuntimeRestoreTests in Microsoft.Dnx.Tooling.FunctionalTests 3 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/Default.cs: -------------------------------------------------------------------------------- 1 | namespace RuntimeRestoreTest 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | return "This is the Runtime-independent version."; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/Sample.osx.10.10-x64.cs: -------------------------------------------------------------------------------- 1 | namespace RuntimeRestoreTest 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | return "This is the Mac OS X 10.10 x64 version."; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/Sample.ubuntu.14.04-x64.cs: -------------------------------------------------------------------------------- 1 | namespace RuntimeRestoreTest 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | return "This is the Ubuntu 14.04 x64 version."; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/Sample.win7-x64.cs: -------------------------------------------------------------------------------- 1 | namespace RuntimeRestoreTest 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | // This one does double-duty as the Windows 7 and Windows 8 one (to test fallback) 8 | return "This is the Windows 7/8 x64 version."; 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/Sample.win7-x86.cs: -------------------------------------------------------------------------------- 1 | namespace RuntimeRestoreTest 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | return "This is the Windows 7 x86 version."; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/Sample.win8-x86.cs: -------------------------------------------------------------------------------- 1 | namespace RuntimeRestoreTest 2 | { 3 | public static class Helper 4 | { 5 | public static string GetValue() 6 | { 7 | return "This is the Windows 8 x86 version."; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/feed/README.md: -------------------------------------------------------------------------------- 1 | # Testing package for runtime-restore 2 | 3 | Yes, I (@anurse) am a horrible person. I checked in a binary file. However, I believe it to be the most efficient way to do this :). We need a package that DNX cannot build (once with Runtime-specific binaries) at this time. We need to use it on Windows, Mac and Linux, and we rarely need to change it. It is 10KB of binary data, and it will almost never change. I think that's good enough reason to check this in and save the time it would take me to build scripts to regenerate these things on the fly... 4 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/RuntimeRestoreTestPackage/feed/RuntimeRestoreTest.1.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/misc/RuntimeRestore/RuntimeRestoreTestPackage/feed/RuntimeRestoreTest.1.0.0.nupkg -------------------------------------------------------------------------------- /misc/RuntimeRestore/TestProject/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TestProject 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | Console.WriteLine(RuntimeRestoreTest.Helper.GetValue()); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/TestProject/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "packages": "./bin/packages" 3 | } 4 | -------------------------------------------------------------------------------- /misc/RuntimeRestore/TestProject/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "RuntimeRestoreTest": "1.0.0" 4 | }, 5 | "frameworks": { 6 | "dnx451": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/ServicingTestProjects/ServiceableLib1/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyMetadata("Serviceable", "True")] -------------------------------------------------------------------------------- /misc/ServicingTestProjects/ServiceableLib1/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace ServiceableLib1 4 | { 5 | public class Class1 6 | { 7 | public Class1() 8 | { 9 | 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/ServicingTestProjects/ServiceableLib1/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "frameworks" : { 5 | "dnx451" : {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /misc/ServicingTestProjects/UnserviceableLib1/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | [assembly: AssemblyMetadata("Serviceable", "False")] -------------------------------------------------------------------------------- /misc/ServicingTestProjects/UnserviceableLib1/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnserviceableLib1 4 | { 5 | public class Class1 6 | { 7 | public Class1() 8 | { 9 | 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/ServicingTestProjects/UnserviceableLib1/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "frameworks" : { 5 | "dnx451" : {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /misc/ServicingTestProjects/UnserviceableLib2/Class1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace UnserviceableLib2 4 | { 5 | public class Class1 6 | { 7 | public Class1() 8 | { 9 | 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/ServicingTestProjects/UnserviceableLib2/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0", 3 | 4 | "frameworks" : { 5 | "dnx451" : {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /misc/XreTestApps/AllTheDnxes/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Dnx46 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | Console.WriteLine(AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/XreTestApps/AllTheDnxes/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | }, 4 | "frameworks": { 5 | "dnx46": {}, 6 | "dnx452": {}, 7 | "dnx451": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/BareApp/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "frameworks": { 3 | "dnx451": {}, 4 | "dnxcore50": {} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /misc/XreTestApps/CommandsProject/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public class Program 4 | { 5 | public void Main(string[] args) 6 | { 7 | Console.WriteLine("Write text"); 8 | } 9 | } -------------------------------------------------------------------------------- /misc/XreTestApps/CommandsProject/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": { 3 | "hello": "run" 4 | }, 5 | "frameworks": { 6 | "dnx451": {}, 7 | "dnxcore50": { 8 | "dependencies": { 9 | "System.Console": "4.0.0-beta-22816" 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /misc/XreTestApps/DependentProject/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "SharedLibrary1": "", 4 | "SharedLibrary2": "", 5 | "SharedLibrary3": "" 6 | }, 7 | "frameworks": { 8 | "dnx451": {}, 9 | "dnxcore50": {} 10 | } 11 | } -------------------------------------------------------------------------------- /misc/XreTestApps/Dnx451/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Dnx46 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | Console.WriteLine(AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/XreTestApps/Dnx451/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | }, 4 | "frameworks": { 5 | "dnx451": {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /misc/XreTestApps/Dnx452/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Dnx46 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | Console.WriteLine(AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/XreTestApps/Dnx452/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | }, 4 | "frameworks": { 5 | "dnx451": {}, 6 | "dnx452": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/XreTestApps/Dnx46/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Dnx46 4 | { 5 | public class Program 6 | { 7 | public void Main(string[] args) 8 | { 9 | Console.WriteLine(AppDomain.CurrentDomain.SetupInformation.TargetFrameworkName); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/XreTestApps/Dnx46/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | }, 4 | "frameworks": { 5 | "dnx46": {}, 6 | "dnx451": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/XreTestApps/FrameworkReferences/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | public class Program 5 | { 6 | public void Main(string[] args) 7 | { 8 | if (args.Length != 1) 9 | { 10 | Console.Error.WriteLine("Required argument: file path"); 11 | return; 12 | } 13 | 14 | foreach (var line in File.ReadAllLines(args[0])) 15 | { 16 | Console.WriteLine(line); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /misc/XreTestApps/FrameworkReferences/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "frameworks": { 3 | "dnx46": { 4 | "frameworkAssemblies": { 5 | "System.IO": "" 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/NoDependencies/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public class Program 4 | { 5 | public void Main(string[] args) 6 | { 7 | for(int i = 0; i <= 15; i++) { 8 | Console.ForegroundColor = (ConsoleColor)i; 9 | Console.WriteLine("Hello, World!"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/XreTestApps/NoDependencies/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "commands": { 3 | "hello": "run" 4 | }, 5 | "frameworks": { 6 | "dnx451": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/XreTestApps/README.md: -------------------------------------------------------------------------------- 1 | # Test Applications 2 | These are some test apps for using with the new k runtime to check features. They aren't in "test" because we don't want build.cmd to pick them up and try to build them since some of them are intentionally broken (UnresolvedDependencies for example) -------------------------------------------------------------------------------- /misc/XreTestApps/SharedLibrary1/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public class Program 4 | { 5 | public void Main(string[] args) 6 | { 7 | Console.WriteLine("Hello, World!"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/SharedLibrary1/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Newtonsoft.Json": "6.0.5" 4 | }, 5 | "frameworks": { 6 | "dnx451": {}, 7 | "dnxcore50": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/SharedLibrary2/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public class Program 4 | { 5 | public void Main(string[] args) 6 | { 7 | Console.WriteLine("Hello, World!"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/SharedLibrary2/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Newtonsoft.Json": "6.0.4" 4 | }, 5 | "frameworks": { 6 | "dnx451": {}, 7 | "dnxcore50": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/SharedLibrary3/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public class Program 4 | { 5 | public void Main(string[] args) 6 | { 7 | Console.WriteLine("Hello, World!"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/SharedLibrary3/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Newtonsoft.Json": "6.0.5" 4 | }, 5 | "frameworks": { 6 | "dnx451": {}, 7 | "dnxcore50": {} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/SharedSource/Shared.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace SharedSource 4 | { 5 | internal class Shared 6 | { 7 | public static string GetHello() 8 | { 9 | return "Hello"; 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/XreTestApps/SharedSource/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "shared": "**/*.cs", 3 | "frameworks": { 4 | "dnx451": {} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /misc/XreTestApps/UnresolvedDependency/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "FlibbleWibbleWoozleWuzzle": "4.5.6" 4 | }, 5 | "frameworks": { 6 | "dnx451": { 7 | "frameworkAssemblies": { 8 | "System.Banana": "" 9 | } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /misc/XreTestApps/UsesSharedSource/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | public class Program 4 | { 5 | public void Main(string[] args) 6 | { 7 | Console.WriteLine(SharedSource.Shared.GetHello()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /misc/XreTestApps/UsesSharedSource/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "SharedSource": "" 4 | }, 5 | "frameworks": { 6 | "dnx451": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /misc/XreTestApps/global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "." ] 3 | } -------------------------------------------------------------------------------- /nuspec/dnx-clr-win-x64.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$clr-win-x64 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for Desktop CLR on Windows x64 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nuspec/dnx-clr-win-x86.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$clr-win-x86 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for Desktop CLR on Windows x86 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nuspec/dnx-coreclr-darwin-x64.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$coreclr-darwin-x64 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for CoreCLR on Darwin(OSX) x64 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nuspec/dnx-coreclr-linux-x64.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$coreclr-linux-x64 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for CoreCLR on Linux x64 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nuspec/dnx-coreclr-win-arm.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$coreclr-win-arm 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for CoreCLR on Windows arm 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nuspec/dnx-coreclr-win-x64.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$coreclr-win-x64 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for CoreCLR on Windows x64 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nuspec/dnx-coreclr-win-x86.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$coreclr-win-x86 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for CoreCLR on Windows x86 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /nuspec/dnx-mono.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $RuntimeNamePrefix$mono 5 | 0.0.1-pre 6 | Microsoft 7 | false 8 | Microsoft .NET Execution environment for Mono 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /samples/HelloShared/HelloSharedCode.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace HelloShared 7 | { 8 | internal class HelloSharedCode 9 | { 10 | public static string SharedMethod() 11 | { 12 | return "Hello, code!"; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /samples/HelloShared/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.1-beta-*", 3 | "dependencies": { }, 4 | "shared": "*.cs", 5 | "frameworks": { 6 | "dnx451": { }, 7 | "dnxcore50": { 8 | "dependencies": { 9 | "System.Linq": "4.1.0-*", 10 | } 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /samples/HelloWorld/Program.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | 3 | public class Program 4 | { 5 | public int Main(string[] args) 6 | { 7 | System.Console.WriteLine("Hello World!"); 8 | 9 | var resourceStream = typeof(Program).GetTypeInfo().Assembly.GetManifestResourceStream("HelloWorld.compiler.resources.HTMLPage1.html"); 10 | 11 | if (resourceStream == null) 12 | { 13 | return 1; 14 | } 15 | // System.Console.WriteLine(new Foo().Message); 16 | System.Console.WriteLine(HelloShared.HelloSharedCode.SharedMethod()); 17 | foreach (var arg in args) 18 | { 19 | System.Console.WriteLine(arg); 20 | } 21 | 22 | return 0; 23 | } 24 | } -------------------------------------------------------------------------------- /samples/HelloWorld/compiler/resources/HTMLPage1.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | yarg 10 | 11 | -------------------------------------------------------------------------------- /samples/HelloWorld/more/CompilerError.cs: -------------------------------------------------------------------------------- 1 | { 2 | 3 | } -------------------------------------------------------------------------------- /scripts/dnu.cmd: -------------------------------------------------------------------------------- 1 | @Echo OFF 2 | SETLOCAL 3 | SET ERRORLEVEL= 4 | 5 | "%~dp0dnx" %DNX_OPTIONS% "%~dp0lib\Microsoft.Dnx.Tooling\Microsoft.Dnx.Tooling.dll" %* 6 | 7 | exit /b %ERRORLEVEL% 8 | ENDLOCAL 9 | -------------------------------------------------------------------------------- /scripts/dnu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | SOURCE="${BASH_SOURCE[0]}" 4 | while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink 5 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 6 | SOURCE="$(readlink "$SOURCE")" 7 | [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located 8 | done 9 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 10 | 11 | # work around restore timeouts on Mono 12 | [ -z "$MONO_THREADS_PER_CPU" ] && export MONO_THREADS_PER_CPU=50 13 | 14 | exec "$DIR/dnx" "$DIR/lib/Microsoft.Dnx.Tooling/Microsoft.Dnx.Tooling.dll" "$@" 15 | -------------------------------------------------------------------------------- /scripts/dnx-crossgen.cmd: -------------------------------------------------------------------------------- 1 | @Echo OFF 2 | SETLOCAL 3 | SET ERRORLEVEL= 4 | 5 | SET "DNX_RUNTIME_PATH=%~dp0." 6 | SET "CROSSGEN_PATH=%~dp0crossgen.exe" 7 | 8 | "%~dp0dnx" --appbase "%CD%" --lib "%~dp0lib\Microsoft.Dnx.Project" "Microsoft.Dnx.Project" crossgen --exePath "%CROSSGEN_PATH%" --runtimePath "%DNX_RUNTIME_PATH%" %* 9 | 10 | exit /b %ERRORLEVEL% 11 | ENDLOCAL 12 | -------------------------------------------------------------------------------- /scripts/dnx.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | SOURCE="${BASH_SOURCE[0]}" 4 | while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink 5 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 6 | SOURCE="$(readlink "$SOURCE")" 7 | [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located 8 | done 9 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 10 | 11 | if [ -f "$DIR/mono" ]; then 12 | exec "$DIR/mono" $MONO_OPTIONS "$DIR/Microsoft.Dnx.Host.Mono.dll" "$@" 13 | else 14 | exec mono $MONO_OPTIONS "$DIR/Microsoft.Dnx.Host.Mono.dll" "$@" 15 | fi 16 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.ApplicationHost/DefaultHostOptions.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.Versioning; 2 | 3 | namespace Microsoft.Dnx.ApplicationHost 4 | { 5 | public class DefaultHostOptions 6 | { 7 | public string ApplicationBaseDirectory { get; set; } 8 | public string ApplicationName { get; set; } 9 | public int? CompilationServerPort { get; set; } 10 | public string Configuration { get; set; } 11 | public FrameworkName TargetFramework { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.ApplicationHost/Infrastructure/DisposableAction.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Threading; 6 | 7 | namespace Microsoft.Dnx.ApplicationHost 8 | { 9 | internal class DisposableAction : IDisposable 10 | { 11 | private Action _action; 12 | 13 | public DisposableAction(Action action) 14 | { 15 | _action = action; 16 | } 17 | 18 | public void Dispose() 19 | { 20 | Interlocked.Exchange(ref _action, () => { }).Invoke(); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.ApplicationHost/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.CSharp.Abstractions/IRoslynMetadataReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.CodeAnalysis; 5 | using Microsoft.Extensions.CompilationAbstractions; 6 | 7 | namespace Microsoft.Dnx.Compilation.CSharp 8 | { 9 | public interface IRoslynMetadataReference : IMetadataReference 10 | { 11 | MetadataReference MetadataReference { get; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.CSharp.Abstractions/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.CSharp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.CSharp/RoslynDiagnostics.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.CodeAnalysis; 2 | 3 | namespace Microsoft.Dnx.Compilation.CSharp 4 | { 5 | internal class RoslynDiagnostics 6 | { 7 | internal static readonly DiagnosticDescriptor RealSigningSupportedOnlyOnDesktopClr = new DiagnosticDescriptor( 8 | id: "DNX1001", 9 | title: "Strong name generation with a private and public key pair is not supported on this platform", 10 | messageFormat: "Strong name generation with a private and public key pair is supported only on desktop CLR. Falling back to OSS signing.", 11 | category: "StrongNaming", 12 | defaultSeverity: DiagnosticSeverity.Warning, 13 | isEnabledByDefault: true); 14 | } 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.DesignTime/CompileResponse.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | using Microsoft.Extensions.CompilationAbstractions; 6 | 7 | namespace Microsoft.Dnx.Compilation.DesignTime 8 | { 9 | public class CompileResponse 10 | { 11 | public IList Diagnostics { get; set; } 12 | 13 | public IDictionary EmbeddedReferences { get; set; } 14 | 15 | public byte[] AssemblyBytes { get; set; } 16 | public byte[] PdbBytes { get; set; } 17 | 18 | public string AssemblyPath { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.DesignTime/IDesignTimeHostCompiler.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using Microsoft.Dnx.Runtime; 3 | using Microsoft.Extensions.CompilationAbstractions; 4 | using Microsoft.Extensions.PlatformAbstractions; 5 | 6 | namespace Microsoft.Dnx.Compilation.DesignTime 7 | { 8 | public interface IDesignTimeHostCompiler 9 | { 10 | Task Compile(string projectPath, CompilationTarget library); 11 | } 12 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.DesignTime/Messages/EnumerateProjectContextsMessage.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft.Dnx.Runtime 2 | { 3 | internal class EnumerateProjectContextsMessage : DesignTimeMessage 4 | { 5 | public EnumerateProjectContextsMessage() 6 | { 7 | MessageType = "EnumerateProjectContexts"; 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation.DesignTime/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation/Caching/CacheContextAccessor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Extensions.CompilationAbstractions.Caching; 3 | 4 | namespace Microsoft.Dnx.Compilation.Caching 5 | { 6 | public class CacheContextAccessor : ICacheContextAccessor 7 | { 8 | [ThreadStatic] 9 | private static CacheContext _threadInstance; 10 | 11 | public static CacheContext ThreadInstance 12 | { 13 | get { return _threadInstance; } 14 | set { _threadInstance = value; } 15 | } 16 | 17 | public CacheContext Current 18 | { 19 | get { return ThreadInstance; } 20 | set { ThreadInstance = value; } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation/Caching/NamedCacheDependency.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.CompilationAbstractions.Caching; 2 | 3 | namespace Microsoft.Dnx.Compilation.Caching 4 | { 5 | public class NamedCacheDependency : ICacheDependency 6 | { 7 | private readonly string _name; 8 | private bool _hasChanged; 9 | 10 | public NamedCacheDependency(string name) 11 | { 12 | _name = name; 13 | } 14 | 15 | public void SetChanged() 16 | { 17 | _hasChanged = true; 18 | } 19 | 20 | public bool HasChanged 21 | { 22 | get 23 | { 24 | return _hasChanged; 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Compilation/Resources/IResourceProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | using Microsoft.Dnx.Runtime; 6 | using Microsoft.Extensions.PlatformAbstractions; 7 | using Microsoft.Extensions.CompilationAbstractions; 8 | 9 | namespace Microsoft.Dnx.Compilation 10 | { 11 | public interface IResourceProvider 12 | { 13 | IList GetResources(Project project); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost.Abstractions/IPlugin.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.Extensions.PlatformAbstractions; 5 | using Newtonsoft.Json.Linq; 6 | 7 | namespace Microsoft.Dnx.DesignTimeHost 8 | { 9 | public interface IPlugin 10 | { 11 | bool ProcessMessage(JObject data, IAssemblyLoadContext assemblyLoadContext); 12 | 13 | int Protocol { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost.Abstractions/IPluginMessageBroker.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.DesignTimeHost 5 | { 6 | public interface IPluginMessageBroker 7 | { 8 | void SendMessage(object data); 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost.Abstractions/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/Context.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.Dnx.DesignTimeHost.Models; 5 | 6 | namespace Microsoft.Dnx.DesignTimeHost 7 | { 8 | public class Context 9 | { 10 | public World Local { get; set; } 11 | public World Remote { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/Models/IncomingMessages/ChangeConfigurationMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.DesignTimeHost.Models.IncomingMessages 5 | { 6 | public class ChangeConfigurationMessage 7 | { 8 | public string Configuration { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/Models/IncomingMessages/InitializeMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.DesignTimeHost.Models.IncomingMessages 5 | { 6 | public class InitializeMessage 7 | { 8 | public int Version { get; set; } 9 | 10 | public string Configuration { get; set; } 11 | 12 | public string ProjectFolder { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/Models/IncomingMessages/PluginMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Newtonsoft.Json.Linq; 5 | 6 | namespace Microsoft.Dnx.DesignTimeHost.Models.IncomingMessages 7 | { 8 | public class PluginMessage 9 | { 10 | public string PluginId { get; set; } 11 | public string MessageId { get; set; } 12 | public string MessageName { get; set; } 13 | public JObject Data { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/Models/OutgoingMessages/NoopPluginResponseMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.DesignTimeHost.Models.OutgoingMessages 5 | { 6 | public class NoopPluginResponseMessage : PluginResponseMessage 7 | { 8 | public bool Unhandled { get; } = true; 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/Models/OutgoingMessages/OutputsMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | 7 | namespace Microsoft.Dnx.DesignTimeHost.Models.OutgoingMessages 8 | { 9 | public class OutputsMessage 10 | { 11 | public FrameworkData FrameworkData { get; set; } 12 | 13 | public IDictionary EmbeddedReferences { get; set; } 14 | 15 | public byte[] AssemblyBytes { get; set; } 16 | public byte[] PdbBytes { get; set; } 17 | 18 | public string AssemblyPath { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/Models/OutgoingMessages/RegisterPluginResponseMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.DesignTimeHost.Models.OutgoingMessages 5 | { 6 | public class RegisterPluginResponseMessage : PluginResponseMessage 7 | { 8 | public int Protocol { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.DesignTimeHost/PluginHandlerOnReceiveResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.DesignTimeHost 5 | { 6 | public enum PluginHandlerOnReceiveResult 7 | { 8 | Default, 9 | RefreshDependencies, 10 | } 11 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Host.Clr/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Host.CoreClr/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Host/DnxHostPlatformServices.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Extensions.PlatformAbstractions; 3 | 4 | namespace Microsoft.Dnx.Host 5 | { 6 | internal class DnxHostPlatformServices : PlatformServices 7 | { 8 | public DnxHostPlatformServices(HostApplicationEnvironment applicationEnvironment, 9 | IRuntimeEnvironment runtimeEnvironment) 10 | { 11 | Application = applicationEnvironment; 12 | Runtime = runtimeEnvironment; 13 | } 14 | 15 | public override IApplicationEnvironment Application { get; } 16 | 17 | public override IRuntimeEnvironment Runtime { get; } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Loader/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Project/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Project/CrossgenOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Microsoft.Dnx.Project 11 | { 12 | public class CrossgenOptions 13 | { 14 | public string CrossgenPath { get; set; } 15 | 16 | public string RuntimePath { get; set; } 17 | 18 | public IEnumerable InputPaths { get; set; } 19 | 20 | public bool Symbols { get; set; } 21 | 22 | public bool Partial { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Project/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime.CommandParsing.Sources/Chain.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Runtime.CommandParsing 5 | { 6 | internal struct Chain 7 | { 8 | public Chain(TLeft left, TDown down) 9 | : this() 10 | { 11 | Left = left; 12 | Down = down; 13 | } 14 | 15 | public readonly TLeft Left; 16 | public readonly TDown Down; 17 | } 18 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime.CommandParsing.Sources/Parser.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Runtime.CommandParsing 5 | { 6 | internal delegate Result Parser(Cursor cursor); 7 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime.CommandParsing.Sources/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "compilationOptions": { 4 | "define": [ "TRACE" ], 5 | "warningsAsErrors": true, 6 | "keyFile": "../../tools/Key.snk" 7 | }, 8 | "shared": "**/*.cs", 9 | "frameworks": { 10 | "net451": {}, 11 | "dotnet5.4": { 12 | "dependencies": { 13 | "System.Runtime": "4.1.0-*" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime.Internals/Constants.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | 6 | namespace Microsoft.Dnx.Runtime 7 | { 8 | internal static class RuntimeOperatingSystems 9 | { 10 | public static readonly string Windows = nameof(Windows); 11 | public static readonly string Darwin = nameof(Darwin); 12 | public static readonly string Linux = nameof(Linux); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime.Internals/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "compilationOptions": { 4 | "define": [ "TRACE" ], 5 | "warningsAsErrors": true, 6 | "keyFile": "../../tools/Key.snk" 7 | }, 8 | "shared": "**/*.cs", 9 | "dependencies": { 10 | "Microsoft.Extensions.PlatformAbstractions": "1.0.0-*" 11 | }, 12 | "frameworks": { 13 | "dnx451": { }, 14 | "dnxcore50": { 15 | "dependencies": { 16 | } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime.Sources/Impl/ResourcesHelper.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Reflection; 6 | 7 | namespace Microsoft.Dnx.Runtime 8 | { 9 | internal class ResourcesHelper 10 | { 11 | public static bool IsResourceNeutralCulture(AssemblyName assemblyName) 12 | { 13 | // CultureName for neutral cultures is empty in windows but on mono CultureName is neutral. 14 | return string.IsNullOrEmpty(assemblyName.CultureName) || string.Equals(assemblyName.CultureName,"neutral", StringComparison.OrdinalIgnoreCase); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime.Sources/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "compilationOptions": { 4 | "define": [ "TRACE" ], 5 | "warningsAsErrors": true, 6 | "keyFile": "../../tools/Key.snk" 7 | }, 8 | "shared": "**/*.cs", 9 | "dependencies": { }, 10 | "frameworks": { 11 | "dotnet5.4": { 12 | "dependencies": { 13 | "System.Threading": "4.0.11-*", 14 | "System.ComponentModel": "4.0.1-*" 15 | } 16 | }, 17 | "net451": { }, 18 | "netcore50": { 19 | "dependencies": { 20 | "System.Runtime": "4.0.0" 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/Compilation/ICompilationEngine.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.Runtime.Versioning; 4 | using Microsoft.Extensions.PlatformAbstractions; 5 | 6 | namespace Microsoft.Dnx.Runtime.Compilation 7 | { 8 | public interface ICompilationEngine 9 | { 10 | Assembly LoadProject(Project project, FrameworkName targetFramework, string aspect, IAssemblyLoadContext loadContext, AssemblyName assemblyName, string configuration); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/CompilerServices.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace Microsoft.Dnx.Runtime 3 | { 4 | public class CompilerServices 5 | { 6 | public CompilerServices(string name, TypeInformation compiler) 7 | { 8 | Name = name; 9 | ProjectCompiler = compiler; 10 | } 11 | 12 | public string Name { get; private set; } 13 | 14 | public TypeInformation ProjectCompiler { get; private set; } 15 | } 16 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/DependencyManagement/LibraryDependencyTypeFlag.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | 6 | namespace Microsoft.Dnx.Runtime 7 | { 8 | [Flags] 9 | public enum LibraryDependencyTypeFlag 10 | { 11 | None = 0, 12 | MainReference = 1 << 0, 13 | MainSource = 1 << 1, 14 | MainExport = 1 << 2, 15 | PreprocessReference = 1 << 3, 16 | RuntimeComponent = 1 << 4, 17 | DevComponent = 1 << 5, 18 | PreprocessComponent = 1 << 6, 19 | BecomesNupkgDependency = 1 << 7, 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/DependencyManagement/LockFilePackageLibrary.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | using NuGet; 6 | 7 | namespace Microsoft.Dnx.Runtime 8 | { 9 | public class LockFilePackageLibrary 10 | { 11 | public string Name { get; set; } 12 | 13 | public SemanticVersion Version { get; set; } 14 | 15 | public bool IsServiceable { get; set; } 16 | 17 | public string Sha512 { get; set; } 18 | 19 | public IList Files { get; set; } = new List(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/DependencyManagement/LockFileProjectLibrary.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using NuGet; 5 | 6 | namespace Microsoft.Dnx.Runtime 7 | { 8 | public class LockFileProjectLibrary 9 | { 10 | public string Name { get; set; } 11 | 12 | public SemanticVersion Version { get; set; } 13 | 14 | public string Path { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/DependencyManagement/LockFileTarget.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | using System.Runtime.Versioning; 6 | 7 | namespace Microsoft.Dnx.Runtime 8 | { 9 | public class LockFileTarget 10 | { 11 | public FrameworkName TargetFramework { get; set; } 12 | 13 | public string RuntimeIdentifier { get; set; } 14 | 15 | public IList Libraries { get; set; } = new List(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/DependencyManagement/ProjectFileDependencyGroup.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace Microsoft.Dnx.Runtime 7 | { 8 | public class ProjectFileDependencyGroup 9 | { 10 | public ProjectFileDependencyGroup(string frameworkName, IEnumerable dependencies) 11 | { 12 | FrameworkName = frameworkName; 13 | Dependencies = dependencies; 14 | } 15 | 16 | public string FrameworkName { get; } 17 | 18 | public IEnumerable Dependencies { get; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/DependencyManagement/SemanticVersionFloatBehavior.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.Dnx.Runtime 4 | { 5 | public enum SemanticVersionFloatBehavior 6 | { 7 | None, 8 | Prerelease, 9 | Revision, 10 | Build, 11 | Minor, 12 | Major 13 | } 14 | 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/IFrameworkReferenceResolver.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Runtime.Versioning; 6 | 7 | namespace Microsoft.Dnx.Runtime 8 | { 9 | public interface IFrameworkReferenceResolver 10 | { 11 | bool TryGetAssembly(string name, FrameworkName frameworkName, out string path, out Version version); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/NuGet/NETPortable/NetPortableProfileCollection.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Collections.ObjectModel; 6 | 7 | namespace NuGet 8 | { 9 | public class NetPortableProfileCollection : KeyedCollection 10 | { 11 | public NetPortableProfileCollection() 12 | : base(StringComparer.OrdinalIgnoreCase) 13 | { 14 | } 15 | 16 | protected override string GetKeyForItem(NetPortableProfile item) 17 | { 18 | return item.Name; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/NuGet/Packages/IFrameworkTargetable.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | using System.Runtime.Versioning; 6 | 7 | namespace NuGet 8 | { 9 | public interface IFrameworkTargetable 10 | { 11 | IEnumerable SupportedFrameworks { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Runtime/NuGet/Utility/IVersionSpec.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet 5 | { 6 | public interface IVersionSpec 7 | { 8 | SemanticVersion MinVersion { get; } 9 | bool IsMinInclusive { get; } 10 | SemanticVersion MaxVersion { get; } 11 | bool IsMaxInclusive { get; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost.Client.Sources/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "description": "Shared sources for automating Microsoft.Dnx.TestHost", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/aspnet/testing" 7 | }, 8 | "shared": "*.cs", 9 | "dependencies": {}, 10 | "frameworks": { 11 | "net451": {}, 12 | "netstandard1.3": { 13 | "dependencies": { 14 | "System.Runtime": "4.1.0-*" 15 | }, 16 | "imports": [ 17 | "dotnet5.4" 18 | ] 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/DIA/DataKind.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace dia2 5 | { 6 | public enum DataKind 7 | { 8 | DataIsUnknown, 9 | DataIsLocal, 10 | DataIsStaticLocal, 11 | DataIsParam, 12 | DataIsObjectPtr, 13 | DataIsFileStatic, 14 | DataIsGlobal, 15 | DataIsMember, 16 | DataIsStaticMember, 17 | DataIsConstant 18 | } 19 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/DIA/DiaDataSource.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Runtime.InteropServices; 6 | 7 | namespace dia2 8 | { 9 | [ComImport] 10 | [Guid("E6756135-1E65-4D17-8576-610761398C3C")] 11 | public class DiaDataSource 12 | { 13 | } 14 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/DIA/ISequentialStream.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Runtime.InteropServices; 6 | 7 | namespace dia2 8 | { 9 | [Guid("0C733A30-2A1C-11CE-ADE5-00AA0044773D"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] 10 | [ComImport] 11 | public interface ISequentialStream 12 | { 13 | 14 | void RemoteRead([Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] byte[] pv, int cb, out uint pcbRead); 15 | 16 | void RemoteWrite([In] ref byte pv, [In] uint cb, out uint pcbWritten); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/Messages/ErrorMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.TestHost 5 | { 6 | public class ErrorMessage 7 | { 8 | public string Message { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/Messages/LogMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.TestHost 5 | { 6 | public class LogMessage 7 | { 8 | public string Name { get; set; } 9 | 10 | public int EventId { get; set; } 11 | 12 | public string Level { get; set; } 13 | 14 | public string Message { get; set; } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/Messages/Message.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Newtonsoft.Json; 5 | using Newtonsoft.Json.Linq; 6 | 7 | namespace Microsoft.Dnx.TestHost 8 | { 9 | public class Message 10 | { 11 | public string MessageType { get; set; } 12 | 13 | public JToken Payload { get; set; } 14 | 15 | public override string ToString() 16 | { 17 | return "(" + MessageType + ") -> " + (Payload == null ? "null" : Payload.ToString(Formatting.Indented)); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/Messages/ProtocolVersionMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.TestHost 5 | { 6 | public class ProtocolVersionMessage 7 | { 8 | public int Version { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.TestHost/Messages/RunTestsMessage.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace Microsoft.Dnx.TestHost 7 | { 8 | public class RunTestsMessage 9 | { 10 | public List Tests { get; set; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/ISourceInformationProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | 6 | namespace Microsoft.Dnx.Testing.Abstractions 7 | { 8 | public interface ISourceInformationProvider 9 | { 10 | SourceInformation GetSourceInformation(MethodInfo method); 11 | } 12 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/ITestDiscoverySink.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Testing.Abstractions 5 | { 6 | public interface ITestDiscoverySink 7 | { 8 | void SendTest(Test test); 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/ITestExecutionSink.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Testing.Abstractions 5 | { 6 | public interface ITestExecutionSink 7 | { 8 | void RecordStart(Test test); 9 | 10 | void RecordResult(TestResult testResult); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-us")] 9 | [assembly: AssemblyCompany("Microsoft Corporation.")] 10 | [assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] 11 | [assembly: AssemblyProduct("Microsoft ASP.NET Core")] 12 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/SourceInformation.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Testing.Abstractions 5 | { 6 | public class SourceInformation 7 | { 8 | public SourceInformation(string filename, int lineNumber) 9 | { 10 | Filename = filename; 11 | LineNumber = lineNumber; 12 | } 13 | 14 | public string Filename { get; } 15 | 16 | public int LineNumber { get; } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/TestHostServices.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.Extensions.Logging; 5 | 6 | namespace Microsoft.Dnx.Testing.Abstractions 7 | { 8 | public abstract class TestHostServices 9 | { 10 | public abstract ITestDiscoverySink TestDiscoverySink { get; } 11 | 12 | public abstract ITestExecutionSink TestExecutionSink { get; } 13 | 14 | public abstract ISourceInformationProvider SourceInformationProvider { get; } 15 | 16 | public abstract ILoggerFactory LoggerFactory { get; } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/TestOutcome.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Testing.Abstractions 5 | { 6 | public enum TestOutcome 7 | { 8 | None, 9 | Passed, 10 | Failed, 11 | Skipped, 12 | NotFound 13 | } 14 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Testing.Abstractions/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Abstractions for test runners to communicate to a tool, such as Visual Studio.", 3 | "version": "1.0.0-*", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/aspnet/testing" 7 | }, 8 | "compilationOptions": { 9 | "warningsAsErrors": true, 10 | "keyFile": "../../tools/Key.snk", 11 | "nowarn": [ 12 | "CS1591" 13 | ], 14 | "xmlDoc": true 15 | }, 16 | "dependencies": { 17 | "Microsoft.Extensions.Logging.Abstractions": "1.0.0-*" 18 | }, 19 | "frameworks": { 20 | "net451": {}, 21 | "netstandard1.3": { 22 | "imports": [ 23 | "dotnet5.4" 24 | ] 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Algorithms/IGraphNode.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace Microsoft.Dnx.Tooling.Algorithms 7 | { 8 | public interface IGraphNode 9 | { 10 | TValue Item { get; } 11 | 12 | IEnumerable> Children { get; } 13 | } 14 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/IProjectResolver.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | 5 | using System.Collections.Generic; 6 | 7 | namespace Microsoft.Dnx.Tooling 8 | { 9 | public interface IProjectResolver 10 | { 11 | IEnumerable SearchPaths { get; } 12 | 13 | bool TryResolveProject(string name, out Runtime.Project project); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/IReport.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | 7 | namespace Microsoft.Dnx.Tooling 8 | { 9 | public interface IReport 10 | { 11 | void WriteLine(string message); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Install/IAppCommandsRepository.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | using NuGet; 6 | 7 | namespace Microsoft.Dnx.Tooling 8 | { 9 | internal interface IAppCommandsRepository 10 | { 11 | IPackagePathResolver PathResolver { get; } 12 | 13 | IFileSystem Root { get; } 14 | 15 | IFileSystem PackagesRoot { get; } 16 | 17 | IEnumerable Commands { get; } 18 | 19 | NuGet.PackageInfo FindCommandOwner(string command); 20 | 21 | void Remove(string commandName); 22 | } 23 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Authoring/IPackageBuilder.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.ObjectModel; 5 | using System.IO; 6 | 7 | namespace NuGet 8 | { 9 | public interface IPackageBuilder : IPackageMetadata 10 | { 11 | Collection Files { get; } 12 | void Save(Stream stream); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Authoring/IPropertyProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet 5 | { 6 | public interface IPropertyProvider 7 | { 8 | string GetPropertyValue(string propertyName); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Authoring/ManifestFile.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.IO; 5 | using System.Linq; 6 | 7 | namespace NuGet 8 | { 9 | public class ManifestFile 10 | { 11 | private static readonly char[] _invalidTargetChars = Path.GetInvalidFileNameChars().Except(new[] { '\\', '/', '.' }).ToArray(); 12 | private static readonly char[] _invalidSourceCharacters = Path.GetInvalidPathChars(); 13 | 14 | public string Source { get; set; } 15 | 16 | public string Target { get; set; } 17 | 18 | public string Exclude { get; set; } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Authoring/ManifestVersionAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | 6 | namespace NuGet 7 | { 8 | [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] 9 | internal sealed class ManifestVersionAttribute : Attribute 10 | { 11 | public ManifestVersionAttribute(int version) 12 | { 13 | Version = version; 14 | } 15 | 16 | public int Version { get; private set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/CommandLine/Common/CommandLineConstants.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet.Common 5 | { 6 | internal static class CommandLineConstants 7 | { 8 | internal static readonly string UserAgent = "NuGet Command Line"; 9 | 10 | internal static string NuGetDocs = "http://docs.nuget.org/"; 11 | 12 | internal static string NuGetDocsCommandLineReference = "http://docs.nuget.org/docs/reference/command-line-reference"; 13 | 14 | internal static string PackagesDirectoryName = "packages"; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/ContentModel/Asset.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace NuGet.ContentModel 4 | { 5 | public class Asset 6 | { 7 | public string Path { get; set; } 8 | public string Link { get; set; } 9 | 10 | public override string ToString() 11 | { 12 | return Path; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/ContentModel/ContentItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace NuGet.ContentModel 5 | { 6 | public class ContentItem 7 | { 8 | public string Path { get; set; } 9 | public IDictionary Properties { get; set; } = new Dictionary(); 10 | 11 | public override string ToString() 12 | { 13 | return Path; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/ContentModel/ContentItemGroup.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace NuGet.ContentModel 4 | { 5 | public class ContentItemGroup 6 | { 7 | public ContentItemGroup() 8 | { 9 | Properties = new Dictionary(); 10 | Items = new List(); 11 | } 12 | 13 | public IDictionary Properties { get; } 14 | 15 | public IList Items { get; } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/ContentModel/SelectionCriteria.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace NuGet.ContentModel 4 | { 5 | public class SelectionCriteria 6 | { 7 | public SelectionCriteria() 8 | { 9 | Entries = new List(); 10 | } 11 | 12 | public IList Entries { get; set; } 13 | } 14 | 15 | public class SelectionCriteriaEntry 16 | { 17 | public SelectionCriteriaEntry() 18 | { 19 | Properties = new Dictionary(); 20 | } 21 | 22 | public IDictionary Properties { get; set; } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Core/IMachineWideSettings.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace NuGet 7 | { 8 | public interface IMachineWideSettings 9 | { 10 | IEnumerable Settings { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Core/PackageSource/IPackageSourceProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace NuGet 7 | { 8 | public interface IPackageSourceProvider 9 | { 10 | IEnumerable LoadPackageSources(); 11 | bool IsPackageSourceEnabled(PackageSource source); 12 | } 13 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Core/Utility/IHashProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.IO; 5 | 6 | namespace NuGet 7 | { 8 | public interface IHashProvider 9 | { 10 | byte[] CalculateHash(Stream stream); 11 | 12 | byte[] CalculateHash(byte[] data); 13 | 14 | bool VerifyHash(byte[] data, byte[] hash); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Extensions/ObjectExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | 5 | namespace NuGet 6 | { 7 | internal static class ObjectExtensions 8 | { 9 | public static string ToStringSafe(this object obj) 10 | { 11 | return obj == null ? null : obj.ToString(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Extensions/PackageExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | 6 | namespace NuGet 7 | { 8 | public static class PackageExtensions 9 | { 10 | public static bool IsReleaseVersion(this IPackageName packageMetadata) 11 | { 12 | return String.IsNullOrEmpty(packageMetadata.Version.SpecialVersion); 13 | } 14 | 15 | public static string GetFullName(this IPackageName package) 16 | { 17 | return package.Id + " " + package.Version; 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Extensions/StringExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet 5 | { 6 | internal static class StringExtensions 7 | { 8 | public static string SafeTrim(this string value) 9 | { 10 | return value == null ? null : value.Trim(); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Logging/ILogger.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet 5 | { 6 | public interface ILogger 7 | { 8 | void Log(MessageLevel level, string message, params object[] args); 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Logging/MessageLevel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet 5 | { 6 | public enum MessageLevel 7 | { 8 | Info, 9 | Warning, 10 | Debug, 11 | Error 12 | } 13 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Logging/NullLogger.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet 5 | { 6 | public class NullLogger : ILogger 7 | { 8 | private static readonly ILogger _instance = new NullLogger(); 9 | 10 | public static ILogger Instance 11 | { 12 | get 13 | { 14 | return _instance; 15 | } 16 | } 17 | 18 | public void Log(MessageLevel level, string message, params object[] args) 19 | { 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Packages/IPackageAssemblyReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace NuGet 5 | { 6 | public interface IPackageAssemblyReference : IPackageFile 7 | { 8 | string Name 9 | { 10 | get; 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/NuGet/Packages/IPackageName.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | 5 | namespace NuGet 6 | { 7 | public interface IPackageName 8 | { 9 | string Id { get; } 10 | SemanticVersion Version { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Add/AddOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling.Packages 5 | { 6 | /// 7 | /// Summary description for AddOptions 8 | /// 9 | public class AddOptions : PackagesOptions 10 | { 11 | public string NuGetPackage { get; set; } 12 | public string PackageHashFilePath { get; set; } 13 | public string PackageHash { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Commit/CommitOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling.Packages 5 | { 6 | /// 7 | /// Summary description for CommitOptions 8 | /// 9 | public class CommitOptions : PackagesOptions 10 | { 11 | } 12 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/PackagesOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling.Packages 5 | { 6 | /// 7 | /// Summary description for FeedOptions 8 | /// 9 | public class PackagesOptions 10 | { 11 | public PackagesOptions() 12 | { 13 | } 14 | 15 | public string SourcePackages { get; set; } 16 | 17 | public Reports Reports { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Pull/PullOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling.Packages 5 | { 6 | /// 7 | /// Summary description for PullOptions 8 | /// 9 | public class PullOptions : PackagesOptions 10 | { 11 | public string RemotePackages { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Push/PushOptions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling.Packages 5 | { 6 | /// 7 | /// Summary description for PushOptions 8 | /// 9 | public class PushOptions : PackagesOptions 10 | { 11 | public string RemotePackages { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Workers/RepositoryChangeRecord.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace Microsoft.Dnx.Tooling.Packages.Workers 7 | { 8 | public class RepositoryChangeRecord 9 | { 10 | public int Next { get; set; } 11 | 12 | public IEnumerable Add { get; set; } 13 | 14 | public IEnumerable Remove { get; set; } 15 | } 16 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Workers/RepositoryContentsRecord.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace Microsoft.Dnx.Tooling.Packages.Workers 7 | { 8 | public class RepositoryContentsRecord 9 | { 10 | public List Contents { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Workers/RepositoryPublishers.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling.Packages.Workers 5 | { 6 | /// 7 | /// Summary description for RepositoryPublishers 8 | /// 9 | public static class RepositoryPublishers 10 | { 11 | public static IRepositoryPublisher Create( 12 | string path, 13 | Reports reports) 14 | { 15 | return new FileSystemRepositoryPublisher(path) 16 | { 17 | Reports = reports 18 | }; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Packages/Workers/RepositoryTransmitRecord.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace Microsoft.Dnx.Tooling.Packages.Workers 7 | { 8 | public class RepositoryTransmitRecord 9 | { 10 | public IDictionary Push { get; set; } 11 | 12 | public IDictionary Pull { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/ReportExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling 5 | { 6 | public static class ReportExtensions 7 | { 8 | public static void WriteLine(this IReport report) 9 | { 10 | report.WriteLine(string.Empty); 11 | } 12 | 13 | public static void WriteLine(this IReport report, string format, params object[] args) 14 | { 15 | report.WriteLine(string.Format(format, args)); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Restore/GraphModel/GraphItem.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.Dnx.Runtime; 5 | using Microsoft.Extensions.PlatformAbstractions; 6 | using System.Collections.Generic; 7 | 8 | namespace Microsoft.Dnx.Tooling 9 | { 10 | public class GraphItem 11 | { 12 | public WalkProviderMatch Match { get; set; } 13 | public IEnumerable Dependencies { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Restore/IDependencyProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | using System.Runtime.Versioning; 6 | 7 | namespace Microsoft.Dnx.Runtime 8 | { 9 | public interface IDependencyProvider 10 | { 11 | LibraryDescription GetDescription(LibraryRange libraryRange, FrameworkName targetFramework); 12 | 13 | IEnumerable GetAttemptedPaths(FrameworkName targetFramework); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Restore/NuGet/HttpSourceResult.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.IO; 6 | 7 | namespace Microsoft.Dnx.Tooling.Restore.NuGet 8 | { 9 | internal class HttpSourceResult : IDisposable 10 | { 11 | public string CacheFileName { get; set; } 12 | public Stream Stream { get; set; } 13 | 14 | public void Dispose() 15 | { 16 | if (Stream != null) 17 | { 18 | Stream.Dispose(); 19 | Stream = null; 20 | } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Restore/NuGet/NupkgEntry.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Tooling.Restore.NuGet 5 | { 6 | internal class NupkgEntry 7 | { 8 | public string TempFileName { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Restore/NuGet/PackageInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using NuGet; 5 | 6 | namespace Microsoft.Dnx.Tooling 7 | { 8 | public class PackageInfo 9 | { 10 | public string Id { get; set; } 11 | public SemanticVersion Version { get; set; } 12 | public string ContentUri { get; set; } 13 | public bool Listed { get; set; } = true; 14 | } 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Dnx.Tooling/Shims/ProtectedData.cs: -------------------------------------------------------------------------------- 1 | #if DNXCORE50 2 | namespace System.Security.Cryptography 3 | { 4 | public static class ProtectedData 5 | { 6 | public static byte[] Protect(byte[] userData, byte[] optionalEntropy, DataProtectionScope scope) 7 | { 8 | throw new NotImplementedException(); 9 | } 10 | 11 | public static byte[] Unprotect(byte[] encryptedData, byte[] optionalEntropy, DataProtectionScope scope) 12 | { 13 | throw new NotImplementedException(); 14 | } 15 | } 16 | 17 | public enum DataProtectionScope 18 | { 19 | CurrentUser, 20 | LocalMachine 21 | } 22 | } 23 | #endif 24 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CommandLineUtils.Sources/CommandLine/CommandOptionType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | 5 | namespace Microsoft.Dnx.Runtime.Common.CommandLine 6 | { 7 | internal enum CommandOptionType 8 | { 9 | MultipleValue, 10 | SingleValue, 11 | NoValue 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CommandLineUtils.Sources/CommandLine/CommandParsingException.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | 6 | namespace Microsoft.Dnx.Runtime.Common.CommandLine 7 | { 8 | internal class CommandParsingException : Exception 9 | { 10 | public CommandParsingException(CommandLineApplication command, string message) 11 | : base(message) 12 | { 13 | Command = command; 14 | } 15 | 16 | public CommandLineApplication Command { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CommandLineUtils.Sources/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "compilationOptions": { 4 | "define": [ "TRACE" ], 5 | "warningsAsErrors": true, 6 | "keyFile": "../../tools/Key.snk" 7 | }, 8 | "shared": "**/*.cs", 9 | "frameworks": { 10 | "net451": {}, 11 | "dotnet5.4": { 12 | "dependencies": { 13 | "System.Runtime": "4.1.0-*" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/Caching/CacheContext.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.Extensions.CompilationAbstractions.Caching 4 | { 5 | public class CacheContext 6 | { 7 | public object Key { get; private set; } 8 | 9 | public Action Monitor { get; private set; } 10 | 11 | public CacheContext(object key, Action monitor) 12 | { 13 | Key = key; 14 | Monitor = monitor; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/Caching/CacheExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.Extensions.CompilationAbstractions.Caching 4 | { 5 | public static class CacheExtensions 6 | { 7 | public static T Get(this ICache cache, object key, Func factory) 8 | { 9 | return (T)cache.Get(key, ctx => factory(ctx)); 10 | } 11 | 12 | public static T Get(this ICache cache, object key, Func factory) 13 | { 14 | return (T)cache.Get(key, (ctx, oldValue) => factory(ctx, (T)oldValue)); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/Caching/ICache.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Microsoft.Extensions.CompilationAbstractions.Caching 4 | { 5 | public interface ICache 6 | { 7 | object Get(object key, Func factory); 8 | 9 | object Get(object key, Func factory); 10 | } 11 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/Caching/ICacheContextAccessor.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft.Extensions.CompilationAbstractions.Caching 2 | { 3 | public interface ICacheContextAccessor 4 | { 5 | CacheContext Current { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/Caching/ICacheDependency.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft.Extensions.CompilationAbstractions.Caching 2 | { 3 | public interface ICacheDependency 4 | { 5 | bool HasChanged { get; } 6 | } 7 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/Caching/INamedCacheDependencyProvider.cs: -------------------------------------------------------------------------------- 1 | namespace Microsoft.Extensions.CompilationAbstractions.Caching 2 | { 3 | public interface INamedCacheDependencyProvider 4 | { 5 | ICacheDependency GetNamedDependency(string name); 6 | 7 | void Trigger(string name); 8 | } 9 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/CompilationFiles.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Microsoft.Extensions.CompilationAbstractions 4 | { 5 | /// 6 | /// Represents the resolved collection of files used for compilation 7 | /// 8 | public class CompilationFiles 9 | { 10 | public IEnumerable PreprocessSourceFiles { get; } 11 | public IEnumerable SourceFiles { get; } 12 | 13 | public CompilationFiles(IEnumerable preprocessSourceFiles, IEnumerable sourceFiles) 14 | { 15 | PreprocessSourceFiles = preprocessSourceFiles; 16 | SourceFiles = sourceFiles; 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/DiagnosticMessageSeverity.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | /// 7 | /// Specifies the severity of a . 8 | /// 9 | public enum DiagnosticMessageSeverity 10 | { 11 | Info, 12 | Warning, 13 | Error, 14 | } 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/DiagnosticResult.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | public class DiagnosticResult 7 | { 8 | public static readonly DiagnosticResult Successful = new DiagnosticResult(success: true, diagnostics: Enumerable.Empty()); 9 | 10 | public bool Success { get; } 11 | 12 | public IEnumerable Diagnostics { get; } 13 | 14 | public DiagnosticResult(bool success, IEnumerable diagnostics) 15 | { 16 | Success = success; 17 | Diagnostics = diagnostics; 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/EmbeddedMetadataReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | public class EmbeddedMetadataReference : IMetadataEmbeddedReference 7 | { 8 | public EmbeddedMetadataReference(string name, byte[] buffer) 9 | { 10 | Name = name; 11 | Contents = buffer; 12 | } 13 | 14 | public string Name { get; } 15 | 16 | public byte[] Contents { get; } 17 | } 18 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/ILibraryExporter.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | /// 7 | /// Provides access to the complete graph of dependencies for the application. 8 | /// 9 | public interface ILibraryExporter 10 | { 11 | LibraryExport GetExport(string name); 12 | 13 | LibraryExport GetAllExports(string name); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/IMetadataEmbeddedReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | public interface IMetadataEmbeddedReference : IMetadataReference 7 | { 8 | byte[] Contents { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/IMetadataFileReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | public interface IMetadataFileReference : IMetadataReference 7 | { 8 | string Path { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/IMetadataReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | public interface IMetadataReference 7 | { 8 | string Name { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/IProjectCompiler.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.Collections.Generic; 6 | 7 | namespace Microsoft.Extensions.CompilationAbstractions 8 | { 9 | public interface IProjectCompiler 10 | { 11 | IMetadataProjectReference CompileProject( 12 | CompilationProjectContext projectContext, 13 | Func referenceResolver, 14 | Func> resourcesResolver, 15 | string configuration); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/ISourceFileReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | public interface ISourceFileReference : ISourceReference 7 | { 8 | string Path { get; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/ISourceReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.IO; 5 | 6 | namespace Microsoft.Extensions.CompilationAbstractions 7 | { 8 | public interface ISourceReference 9 | { 10 | string Name { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/ResourceDescriptor.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System; 5 | using System.IO; 6 | 7 | namespace Microsoft.Extensions.CompilationAbstractions 8 | { 9 | public class ResourceDescriptor 10 | { 11 | public string FileName { get; set; } 12 | public string Name { get; set; } 13 | public Func StreamFactory { get; set; } 14 | } 15 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.CompilationAbstractions/SourceFileReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.CompilationAbstractions 5 | { 6 | public class SourceFileReference : ISourceFileReference 7 | { 8 | public SourceFileReference(string path) 9 | { 10 | // Unique name of the reference 11 | Name = path; 12 | Path = path; 13 | } 14 | 15 | public string Name { get; } 16 | 17 | public string Path { get; } 18 | } 19 | } -------------------------------------------------------------------------------- /src/Microsoft.Extensions.JsonParser.Sources/JsonNull.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.JsonParser.Sources 5 | { 6 | internal class JsonNull : JsonValue 7 | { 8 | public JsonNull(int line, int column) 9 | : base(line, column) 10 | { 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.JsonParser.Sources/JsonToken.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.JsonParser.Sources 5 | { 6 | internal struct JsonToken 7 | { 8 | public JsonTokenType Type; 9 | public string Value; 10 | public int Line; 11 | public int Column; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.JsonParser.Sources/JsonTokenType.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.JsonParser.Sources 5 | { 6 | internal enum JsonTokenType 7 | { 8 | LeftCurlyBracket, // [ 9 | LeftSquareBracket, // { 10 | RightCurlyBracket, // ] 11 | RightSquareBracket, // } 12 | Colon, // : 13 | Comma, // , 14 | Null, 15 | True, 16 | False, 17 | Number, 18 | String, 19 | EOF 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.JsonParser.Sources/JsonValue.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.JsonParser.Sources 5 | { 6 | internal class JsonValue 7 | { 8 | public JsonValue(int line, int column) 9 | { 10 | Line = line; 11 | Column = column; 12 | } 13 | 14 | public int Line { get; } 15 | 16 | public int Column { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.JsonParser.Sources/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "compilationOptions": { 4 | "define": [ "TRACE" ], 5 | "warningsAsErrors": true, 6 | "keyFile": "../../tools/Key.snk" 7 | }, 8 | "shared": "**/*.cs", 9 | "frameworks": { 10 | "net451": {}, 11 | "dotnet5.4": { 12 | "dependencies": { 13 | "System.Runtime": "4.1.0-*" 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.PlatformAbstractions.Dnx/AssemblyLoadContextExtensions.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | 6 | namespace Microsoft.Extensions.PlatformAbstractions 7 | { 8 | public static class AssemblyLoadContextExtensions 9 | { 10 | public static Assembly Load(this IAssemblyLoadContext loadContext, string name) 11 | { 12 | return loadContext.Load(new AssemblyName(name)); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.PlatformAbstractions.Dnx/DefaultPlatformServices.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Extensions.PlatformAbstractions 5 | { 6 | internal class DefaultDnxPlatformServices : DnxPlatformServices 7 | { 8 | public override IAssemblyLoaderContainer AssemblyLoaderContainer { get; } 9 | 10 | public override IAssemblyLoadContextAccessor AssemblyLoadContextAccessor { get; } 11 | 12 | public override ILibraryManager LibraryManager { get; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.PlatformAbstractions.Dnx/ILibraryManager.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Collections.Generic; 5 | 6 | namespace Microsoft.Extensions.PlatformAbstractions 7 | { 8 | /// 9 | /// Provides access to the complete graph of dependencies for the application. 10 | /// 11 | public interface ILibraryManager 12 | { 13 | IEnumerable GetReferencingLibraries(string name); 14 | 15 | Library GetLibrary(string name); 16 | 17 | IEnumerable GetLibraries(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Microsoft.Extensions.PlatformAbstractions.Dnx/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Reflection; 5 | using System.Resources; 6 | 7 | [assembly: AssemblyMetadata("Serviceable", "True")] 8 | [assembly: NeutralResourcesLanguage("en-US")] 9 | -------------------------------------------------------------------------------- /src/dnx.clr/dllmain.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | 6 | BOOL APIENTRY DllMain( HMODULE /*hModule*/, 7 | DWORD ul_reason_for_call, 8 | LPVOID /*lpReserved*/ 9 | ) 10 | { 11 | switch (ul_reason_for_call) 12 | { 13 | case DLL_PROCESS_ATTACH: 14 | case DLL_THREAD_ATTACH: 15 | case DLL_THREAD_DETACH: 16 | case DLL_PROCESS_DETACH: 17 | break; 18 | } 19 | return TRUE; 20 | } 21 | -------------------------------------------------------------------------------- /src/dnx.clr/dnx.clr.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | EXPORTS 3 | CallApplicationMain 4 | BindApplicationMain 5 | -------------------------------------------------------------------------------- /src/dnx.clr/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Resource.rc 4 | 5 | // Next default values for new objects 6 | // 7 | #ifdef APSTUDIO_INVOKED 8 | #ifndef APSTUDIO_READONLY_SYMBOLS 9 | #define _APS_NEXT_RESOURCE_VALUE 101 10 | #define _APS_NEXT_COMMAND_VALUE 40001 11 | #define _APS_NEXT_CONTROL_VALUE 1001 12 | #define _APS_NEXT_SYMED_VALUE 101 13 | #endif 14 | #endif 15 | -------------------------------------------------------------------------------- /src/dnx.clr/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | -------------------------------------------------------------------------------- /src/dnx.clr/targetver.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | // Including SDKDDKVer.h defines the highest available Windows platform. 7 | 8 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 9 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 10 | 11 | #include 12 | -------------------------------------------------------------------------------- /src/dnx.common/include/tpa.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include 7 | #include "xplat.h" 8 | 9 | const std::vector CreateTpaBase(bool bNative); 10 | -------------------------------------------------------------------------------- /src/dnx.common/include/xplat.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace dnx 10 | { 11 | 12 | #if defined(_WIN32) 13 | 14 | typedef wchar_t char_t; 15 | typedef std::wstring xstring_t; 16 | #define xout std::wcout 17 | #define _X(s) L ## s 18 | 19 | #define PATH_SEPARATOR L"\\" 20 | 21 | #define x_strlen wcslen 22 | 23 | #else // non-windows 24 | 25 | typedef char char_t; 26 | typedef std::string xstring_t; 27 | #define xout std::cout 28 | #define _X(s) s 29 | 30 | #define PATH_SEPARATOR "/" 31 | 32 | #define x_strlen strlen 33 | 34 | #endif 35 | } 36 | -------------------------------------------------------------------------------- /src/dnx.common/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // dnx.common.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /src/dnx.common/stdafx.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(_WIN32) 4 | 5 | #include "targetver.h" 6 | #define WIN32_LEAN_AND_MEAN 7 | 8 | #include 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /src/dnx.common/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /src/dnx.coreclr.unix/stdafx.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | #if PLATFORM_DARWIN 13 | #include 14 | #endif 15 | 16 | typedef const char* LPCTSTR; 17 | -------------------------------------------------------------------------------- /src/dnx.coreclr/dllmain.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | 6 | BOOL APIENTRY DllMain( HMODULE /* hModule */, 7 | DWORD ul_reason_for_call, 8 | LPVOID /* lpReserved */) 9 | { 10 | switch (ul_reason_for_call) 11 | { 12 | case DLL_PROCESS_ATTACH: 13 | case DLL_THREAD_ATTACH: 14 | case DLL_THREAD_DETACH: 15 | case DLL_PROCESS_DETACH: 16 | break; 17 | } 18 | return TRUE; 19 | } 20 | -------------------------------------------------------------------------------- /src/dnx.coreclr/dnx.coreclr.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/dnx.coreclr/exports.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | EXPORTS 3 | CallApplicationMain @1 4 | -------------------------------------------------------------------------------- /src/dnx.coreclr/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Resource.rc 4 | 5 | // Next default values for new objects 6 | // 7 | #ifdef APSTUDIO_INVOKED 8 | #ifndef APSTUDIO_READONLY_SYMBOLS 9 | #define _APS_NEXT_RESOURCE_VALUE 101 10 | #define _APS_NEXT_COMMAND_VALUE 40001 11 | #define _APS_NEXT_CONTROL_VALUE 1001 12 | #define _APS_NEXT_SYMED_VALUE 101 13 | #endif 14 | #endif 15 | -------------------------------------------------------------------------------- /src/dnx.coreclr/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | -------------------------------------------------------------------------------- /src/dnx.coreclr/stdafx.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include "targetver.h" 7 | 8 | #define _CRT_SECURE_NO_WARNINGS 9 | 10 | #include 11 | 12 | // Windows Headers 13 | // Exclude rarely-used stuff from Windows headers 14 | #define WIN32_LEAN_AND_MEAN 15 | #include 16 | 17 | // CRT Headers 18 | #include 19 | #include 20 | 21 | // CLR Headers 22 | #include "mscoree.h" 23 | -------------------------------------------------------------------------------- /src/dnx.coreclr/targetver.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | // Including SDKDDKVer.h defines the highest available Windows platform. 7 | 8 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 9 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 10 | 11 | //See http://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx 12 | #define _WIN32_WINNT 0x0601 // Windows 7 and Windows Server 2008 R2 and above 13 | 14 | #include 15 | -------------------------------------------------------------------------------- /src/dnx.windows/Resource.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/src/dnx.windows/Resource.rc -------------------------------------------------------------------------------- /src/dnx.windows/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by Resource.rc 4 | 5 | // Next default values for new objects 6 | // 7 | #ifdef APSTUDIO_INVOKED 8 | #ifndef APSTUDIO_READONLY_SYMBOLS 9 | #define _APS_NEXT_RESOURCE_VALUE 101 10 | #define _APS_NEXT_COMMAND_VALUE 40001 11 | #define _APS_NEXT_CONTROL_VALUE 1001 12 | #define _APS_NEXT_SYMED_VALUE 101 13 | #endif 14 | #endif 15 | -------------------------------------------------------------------------------- /src/dnx.windows/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | 6 | -------------------------------------------------------------------------------- /src/dnx.windows/stdafx.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include "targetver.h" 7 | 8 | #include 9 | #include 10 | 11 | #define WIN32_LEAN_AND_MEAN 12 | #include 13 | -------------------------------------------------------------------------------- /src/dnx.windows/targetver.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | // Including SDKDDKVer.h defines the highest available Windows platform. 7 | 8 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 9 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 10 | 11 | #include 12 | -------------------------------------------------------------------------------- /src/dnx/dllmain.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | 6 | BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*lpReserved*/) 7 | { 8 | switch (ul_reason_for_call) 9 | { 10 | case DLL_PROCESS_ATTACH: 11 | case DLL_THREAD_ATTACH: 12 | case DLL_THREAD_DETACH: 13 | case DLL_PROCESS_DETACH: 14 | break; 15 | } 16 | return TRUE; 17 | } 18 | -------------------------------------------------------------------------------- /src/dnx/dnx.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | EXPORTS 3 | DnxMain 4 | -------------------------------------------------------------------------------- /src/dnx/pal.darwin.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | #include 6 | #include 7 | #include 8 | 9 | std::string GetNativeBootstrapperDirectory() 10 | { 11 | char buffer[PROC_PIDPATHINFO_MAXSIZE]; 12 | ssize_t ret = proc_pidpath(getpid(), buffer, PROC_PIDPATHINFO_MAXSIZE); 13 | 14 | assert(ret != -1); 15 | 16 | for (; ret > 0 && buffer[ret] != '/'; ret--) 17 | ; 18 | 19 | buffer[ret] = '\0'; 20 | 21 | return std::string(buffer); 22 | } -------------------------------------------------------------------------------- /src/dnx/pal.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include "xplat.h" 7 | #include "trace_writer.h" 8 | #include "app_main.h" 9 | 10 | dnx::xstring_t GetNativeBootstrapperDirectory(); 11 | bool IsTracingEnabled(); 12 | bool GetFullPath(const dnx::char_t* szPath, dnx::char_t* szFullPath); 13 | int CallApplicationMain(const dnx::char_t* moduleName, const char* functionName, CALL_APPLICATION_MAIN_DATA* data, dnx::trace_writer& trace_writer); 14 | -------------------------------------------------------------------------------- /src/dnx/pal.linux.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | #include 6 | #include 7 | #include 8 | 9 | std::string GetNativeBootstrapperDirectory() 10 | { 11 | char buffer[PATH_MAX + 1]; 12 | ssize_t ret = readlink("/proc/self/exe", buffer, PATH_MAX); 13 | 14 | assert(ret != -1); 15 | 16 | // readlink does not null terminate the path 17 | buffer[ret] = '\0'; 18 | 19 | for (; ret > 0 && buffer[ret] != '/'; ret--) 20 | ; 21 | 22 | buffer[ret] = '\0'; 23 | 24 | return std::string(buffer); 25 | } -------------------------------------------------------------------------------- /src/dnx/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by CommonResources.rc 4 | 5 | // Next default values for new objects 6 | // 7 | #ifdef APSTUDIO_INVOKED 8 | #ifndef APSTUDIO_READONLY_SYMBOLS 9 | #define _APS_NEXT_RESOURCE_VALUE 101 10 | #define _APS_NEXT_COMMAND_VALUE 40001 11 | #define _APS_NEXT_CONTROL_VALUE 1001 12 | #define _APS_NEXT_SYMED_VALUE 101 13 | #endif 14 | #endif 15 | -------------------------------------------------------------------------------- /src/dnx/servicing.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | namespace dnx 9 | { 10 | namespace servicing 11 | { 12 | std::wstring get_runtime_path(const std::wstring& servicing_root, bool is_default_servicing_location, dnx::trace_writer& trace_writer); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/dnx/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | -------------------------------------------------------------------------------- /src/dnx/targetver.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | // Including SDKDDKVer.h defines the highest available Windows platform. 7 | 8 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 9 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 10 | 11 | #include 12 | -------------------------------------------------------------------------------- /test/Bootstrapper.FunctionalTests/BootstrapperTestCollection.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.Dnx.CommonTestUtils; 5 | using Xunit; 6 | 7 | namespace Bootstrapper.FunctionalTests 8 | { 9 | [CollectionDefinition("BootstrapperTestCollection")] 10 | public class BootstrapperTestCollection : ICollectionFixture 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test/Bootstrapper.FunctionalTests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.AspNetCore.Testing": "1.0.0-*", 4 | "Microsoft.Dnx.CommonTestUtils": "1.0.0-*", 5 | "Microsoft.Dnx.Runtime.Sources": "1.0.0-*", 6 | "Microsoft.Dnx.Testing.Framework": "1.0.0-*", 7 | "Microsoft.NETCore.Platforms": "1.0.1-*", 8 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 9 | }, 10 | 11 | "frameworks": { 12 | "dnx451": { } 13 | }, 14 | 15 | "commands": { 16 | "test": "xunit.runner.aspnet" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.ApplicationHost.FunctionalTests/ApplicationHostTestCollection.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.Dnx.CommonTestUtils; 5 | using Microsoft.Dnx.Testing.Framework; 6 | using Xunit; 7 | 8 | namespace Microsoft.Dnx.ApplicationHost.FunctionalTests 9 | { 10 | [CollectionDefinition(nameof(ApplicationHostTestCollection))] 11 | public class ApplicationHostTestCollection: ICollectionFixture 12 | { 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.ApplicationHost.FunctionalTests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Dnx.CommonTestUtils": "1.0.0-*", 4 | "Microsoft.Dnx.Runtime.Sources": "1.0.0-*", 5 | "Microsoft.Dnx.Testing.Framework": "1.0.0-*", 6 | "Microsoft.NETCore.Platforms": "1.0.1-*", 7 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 8 | }, 9 | 10 | "frameworks": { 11 | "dnx451": { } 12 | }, 13 | 14 | "commands": { 15 | "test": "xunit.runner.aspnet" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.CommonTestUtils/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "keyFile": "../../tools/Key.snk" 4 | }, 5 | "dependencies": { 6 | "Microsoft.Dnx.Runtime": "1.0.0-*", 7 | "Microsoft.Dnx.Runtime.Sources": "1.0.0-*", 8 | "Microsoft.NETCore.Platforms": "1.0.1-*", 9 | "xunit.runner.aspnet": "2.0.0-aspnet-*", 10 | "Newtonsoft.Json": "8.0.2" 11 | }, 12 | 13 | "frameworks": { 14 | "dnx451": { 15 | "frameworkAssemblies": { 16 | "System.IO.Compression.FileSystem": "" 17 | } 18 | }, 19 | "dnxcore50": { 20 | "dependencies": { 21 | "System.IO.Compression.ZipFile": "4.0.0-*" 22 | } 23 | } 24 | }, 25 | 26 | "commands": { 27 | "test": "xunit.runner.aspnet" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Compilation.CSharp.Tests/FakeCacheContextAccessor.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.CompilationAbstractions.Caching; 2 | 3 | namespace Microsoft.Dnx.Compilation.CSharp.Tests 4 | { 5 | internal class FakeCacheContextAccessor : ICacheContextAccessor 6 | { 7 | public CacheContext Current { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Compilation.CSharp.Tests/FakeMetadataReference.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.CodeAnalysis; 2 | 3 | namespace Microsoft.Dnx.Compilation.CSharp.Tests 4 | { 5 | internal class FakeMetadataReference : IRoslynMetadataReference 6 | { 7 | public string Name { get; set; } 8 | public MetadataReference MetadataReference { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Compilation.CSharp.Tests/FakeNamedDependencyProvider.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Extensions.CompilationAbstractions.Caching; 2 | 3 | namespace Microsoft.Dnx.Compilation.CSharp.Tests 4 | { 5 | internal class FakeNamedDependencyProvider : INamedCacheDependencyProvider 6 | { 7 | public ICacheDependency GetNamedDependency(string name) 8 | { 9 | return null; 10 | } 11 | 12 | public void Trigger(string name) 13 | { 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Compilation.CSharp.Tests/keyfile.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/Microsoft.Dnx.Compilation.CSharp.Tests/keyfile.snk -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Compilation.CSharp.Tests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "keyFile": "../../tools/Key.snk" 4 | }, 5 | "dependencies": { 6 | "Microsoft.AspNetCore.Testing": "1.0.0-*", 7 | "Microsoft.Dnx.Compilation.CSharp": "1.0.0-*", 8 | "Microsoft.Extensions.PlatformAbstractions": "1.0.0-*", 9 | "Microsoft.NETCore.Platforms": "1.0.1-*", 10 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 11 | }, 12 | "frameworks": { 13 | "dnx451": { 14 | "dependencies": { 15 | "Moq": "4.2.1312.1622" 16 | } 17 | }, 18 | "dnxcore50": { } 19 | }, 20 | "commands": { 21 | "test": "xunit.runner.aspnet" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Compilation.Tests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "keyFile": "../../tools/Key.snk" 4 | }, 5 | "dependencies": { 6 | "Microsoft.Dnx.Compilation": "1.0.0-*", 7 | "Microsoft.Dnx.CommonTestUtils": "1.0.0-*", 8 | "Microsoft.NETCore.Platforms": "1.0.1-*", 9 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 10 | }, 11 | "frameworks": { 12 | "dnx451": { }, 13 | "dnxcore50": { } 14 | }, 15 | "commands": { 16 | "test": "xunit.runner.aspnet" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.DesignTimeHost.FunctionalTests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.AspNetCore.Testing": "1.0.0-*", 4 | "Microsoft.Dnx.DesignTimeHost": "1.0.0-*", 5 | "Microsoft.Dnx.Runtime.Sources": "1.0.0-*", 6 | "Microsoft.Dnx.Testing.Framework": "1.0.0-*", 7 | "Microsoft.NETCore.Platforms": "1.0.1-*", 8 | "Newtonsoft.Json": "8.0.2", 9 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 10 | }, 11 | "frameworks": { 12 | "dnx451": { } 13 | }, 14 | "commands": { 15 | "test": "xunit.runner.aspnet" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.DesignTimeHost.Tests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "keyFile": "../../tools/Key.snk" 4 | }, 5 | "dependencies": { 6 | "Microsoft.Dnx.DesignTimeHost": "1.0.0-*", 7 | "Microsoft.Dnx.DesignTimeHost.Abstractions": "1.0.0-*", 8 | "Microsoft.NETCore.Platforms": "1.0.1-*", 9 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 10 | }, 11 | "frameworks": { 12 | "dnx451": { } 13 | }, 14 | "commands": { 15 | "test": "xunit.runner.aspnet" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Runtime.FunctionalTests/ProjectFacts.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Xunit; 5 | 6 | namespace Microsoft.Dnx.Runtime.FunctionalTests 7 | { 8 | public class ProjectFacts 9 | { 10 | [Fact] 11 | public void TryGetProject_FileDoesntExist() 12 | { 13 | Project project; 14 | bool gotProject = Project.TryGetProject(@"c:\thispathshouldnotexist\project.json", out project); 15 | Assert.False(gotProject); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Runtime.FunctionalTests/Utilities/PathHelper.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.IO; 5 | 6 | namespace Microsoft.Dnx.Runtime.FunctionalTests.Utilities 7 | { 8 | public static class PathHelper 9 | { 10 | public static string NormalizeSeparator(string path) 11 | { 12 | return path.Replace('\\', Path.DirectorySeparatorChar) 13 | .Replace('/', Path.DirectorySeparatorChar); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Runtime.FunctionalTests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "keyFile": "../../tools/Key.snk" 4 | }, 5 | "dependencies": { 6 | "Microsoft.AspNetCore.Testing": "1.0.0-*", 7 | "Microsoft.Dnx.CommonTestUtils": "1.0.0-*", 8 | "Microsoft.Dnx.Compilation": "1.0.0-*", 9 | "Microsoft.NETCore.Platforms": "1.0.1-*", 10 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 11 | }, 12 | "frameworks": { 13 | "dnx451": { } 14 | }, 15 | "commands": { 16 | "test": "xunit.runner.aspnet" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Runtime.Tests/SemanticVersionRangeFacts.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using NuGet; 6 | using Xunit; 7 | 8 | namespace Microsoft.Dnx.Runtime.Tests 9 | { 10 | public class SemanticVersionRangeFacts 11 | { 12 | [Fact] 13 | public void VersionRangeToString() 14 | { 15 | var range = new SemanticVersionRange 16 | { 17 | MinVersion = new SemanticVersion("1.0.0-beta"), 18 | MaxVersion = new SemanticVersion("1.0.0-beta") 19 | }; 20 | 21 | Assert.Equal("1.0.0-beta", range.ToString()); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Runtime.Tests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "keyFile": "../../tools/Key.snk" 4 | }, 5 | "dependencies": { 6 | "Microsoft.AspNetCore.Testing": "1.0.0-*", 7 | "Microsoft.Dnx.CommonTestUtils": "1.0.0-*", 8 | "Microsoft.Dnx.Runtime": "1.0.0-*", 9 | "Microsoft.Extensions.PlatformAbstractions": "1.0.0-*", 10 | "Microsoft.NETCore.Platforms": "1.0.1-*", 11 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 12 | }, 13 | "frameworks": { 14 | "dnx451": { }, 15 | "dnxcore50": { } 16 | }, 17 | "commands": { 18 | "test": "xunit.runner.aspnet" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Testing.Framework/Constants/TestEnvironmentNames.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Testing.Framework 5 | { 6 | public static class TestEnvironmentNames 7 | { 8 | public const string TestSdkVersion = "DNX_TEST_SDK_VERSION"; 9 | public const string LocalTestFolder = "DNX_TEST_LOCAL_TEMP_FOLDER"; 10 | public const string Trace = "DNX_TEST_TRACE"; 11 | public const string SaveFiles = "DNX_TEST_SAVE_FILES"; 12 | public const string Runtimes = "DNX_TEST_RUNTIMES"; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Testing.Framework/Directory/DirAssert.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | namespace Microsoft.Dnx.Testing.Framework 5 | { 6 | public class DirAssert 7 | { 8 | public static void Equal(Dir expected, Dir actual, bool compareContents = true) 9 | { 10 | var diff = actual.Diff(expected, compareContents); 11 | if (diff.NoDiff) 12 | { 13 | return; 14 | } 15 | throw new DirMismatchException(expected.LoadPath, actual.LoadPath, diff); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Testing.Framework/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Dnx.Runtime": "1.0.0-*", 4 | "Microsoft.Dnx.Runtime.Sources": "1.0.0-*", 5 | "Microsoft.NETCore.Platforms": "1.0.1-*", 6 | "Newtonsoft.Json": "8.0.2", 7 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 8 | }, 9 | "frameworks": { 10 | "dnx451": { 11 | "frameworkAssemblies": { 12 | "System.Reflection": "" 13 | } 14 | }, 15 | "dnxcore50": { 16 | "dependencies": { 17 | "System.Reflection": "4.0.11-*" 18 | } 19 | } 20 | }, 21 | 22 | "commands": { 23 | "test": "xunit.runner.aspnet" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Testing.SampleTests/SampleTestCollection.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Xunit; 5 | 6 | namespace Microsoft.Dnx.Testing.SampleTests 7 | { 8 | [CollectionDefinition(nameof(SampleTestCollection))] 9 | public class SampleTestCollection : ICollectionFixture 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Testing.SampleTests/SampleTestFixture.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Microsoft.Dnx.Testing.Framework; 5 | 6 | namespace Microsoft.Dnx.Testing.SampleTests 7 | { 8 | public class SampleTestFixture : DnxSdkFunctionalTestFixtureBase 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Testing.SampleTests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0.0-*", 3 | "description": "", 4 | "authors": [ "" ], 5 | "tags": [ "" ], 6 | "projectUrl": "", 7 | "licenseUrl": "", 8 | 9 | "dependencies": { 10 | "Microsoft.AspNetCore.Testing": "1.0.0-*", 11 | "Microsoft.Dnx.Runtime": "1.0.0-*", 12 | "Microsoft.Dnx.Runtime.Sources": "1.0.0-*", 13 | "Microsoft.Dnx.Testing.Framework": "1.0.0-*", 14 | "Microsoft.Dnx.Tooling": "1.0.0-*", 15 | "Microsoft.NETCore.Platforms": "1.0.1-*", 16 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 17 | }, 18 | 19 | "frameworks" : { 20 | "dnx451": { } 21 | }, 22 | 23 | "commands": { 24 | "test": "xunit.runner.aspnet" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Tooling.FunctionalTests/PackageManagerFunctionalTestCollection.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using Xunit; 5 | 6 | namespace Microsoft.Dnx.Tooling.FunctionalTests 7 | { 8 | [CollectionDefinition(nameof(PackageManagerFunctionalTestCollection))] 9 | public class PackageManagerFunctionalTestCollection : 10 | ICollectionFixture 11 | { 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Tooling.FunctionalTests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "System.Reflection.Metadata": "1.0.21-*", 4 | "Microsoft.AspNetCore.Testing": "1.0.0-*", 5 | "Microsoft.Dnx.CommonTestUtils": "1.0.0-*", 6 | "Microsoft.Dnx.Runtime.Sources": "1.0.0-*", 7 | "Microsoft.Dnx.Testing.Framework": "1.0.0-*", 8 | "Microsoft.Dnx.Tooling": "1.0.0-*", 9 | "Microsoft.NETCore.Platforms": "1.0.1-*", 10 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 11 | }, 12 | 13 | "frameworks": { 14 | "dnx451": { } 15 | }, 16 | 17 | "commands": { 18 | "test": "xunit.runner.aspnet" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /test/Microsoft.Dnx.Tooling.Tests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilationOptions": { 3 | "keyFile": "../../tools/Key.snk" 4 | }, 5 | "dependencies": { 6 | "Microsoft.Dnx.CommonTestUtils": "1.0.0-*", 7 | "Microsoft.Dnx.Tooling": "1.0.0-*", 8 | "Microsoft.NETCore.Platforms": "1.0.1-*", 9 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 10 | }, 11 | "frameworks": { 12 | "dnx451": { }, 13 | "dnxcore50": { } 14 | }, 15 | "commands": { 16 | "test": "xunit.runner.aspnet" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /test/Microsoft.Extensions.CommandLineUtils.Sources.Tests/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.Extensions.CommandLineUtils.Sources": "1.0.0-*", 4 | "Microsoft.NETCore.Platforms": "1.0.1-*", 5 | "xunit.runner.aspnet": "2.0.0-aspnet-*" 6 | }, 7 | 8 | "frameworks": { 9 | "dnx451": { }, 10 | "dnxcore50": { } 11 | }, 12 | 13 | "commands": { 14 | "run": "xunit.runner.aspnet", 15 | "test": "xunit.runner.aspnet" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /test/dnx.tests/dnxtests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #include "stdafx.h" 5 | 6 | int _tmain(int argc, _TCHAR* argv[]) 7 | { 8 | ::testing::InitGoogleTest(&argc, argv); 9 | RUN_ALL_TESTS(); 10 | return 0; 11 | } -------------------------------------------------------------------------------- /test/dnx.tests/pal.tests.cpp: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include "stdafx.h" 7 | #include 8 | #include "trace_writer.h" 9 | #include "app_main.h" 10 | 11 | dnx::xstring_t GetNativeBootstrapperDirectory() { return L""; } 12 | bool IsTracingEnabled() { return true; } 13 | bool GetFullPath(const wchar_t* /*szPath*/, wchar_t* /*szFullPath*/) { return false; } 14 | int CallApplicationMain(const wchar_t* /*moduleName*/, const char* /*functionName*/, CALL_APPLICATION_MAIN_DATA* /*data*/, dnx::trace_writer& /*trace_writer*/) { return 3; } -------------------------------------------------------------------------------- /test/dnx.tests/stdafx.h: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | #define WIN32_LEAN_AND_MEAN 10 | #include 11 | 12 | #include "gtest/gtest.h" 13 | -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest-all.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest-all.obj -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.lib -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.log: -------------------------------------------------------------------------------- 1 |  gtest.vcxproj -> C:\Source\dnx\Debug\gtest.lib 2 | -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.pdb -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.tlog/Lib-link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.tlog/Lib-link.read.1.tlog -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.tlog/Lib-link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.tlog/Lib-link.write.1.tlog -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.tlog/gtest.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit 2 | Debug|Win32|C:\Source\dnx\| 3 | -------------------------------------------------------------------------------- /test/gtest-1.7.0/msvc/Debug/gtest.tlog/lib.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/test/gtest-1.7.0/msvc/Debug/gtest.tlog/lib.command.1.tlog -------------------------------------------------------------------------------- /test/gtest-1.7.0/xcode/Config/FrameworkTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // FrameworkTarget.xcconfig 3 | // 4 | // These are Framework target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Dynamic libs need to be position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Dynamic libs should not have their external symbols stripped. 14 | STRIP_STYLE = non-global 15 | 16 | // Let the user install by specifying the $DSTROOT with xcodebuild 17 | SKIP_INSTALL = NO 18 | -------------------------------------------------------------------------------- /test/gtest-1.7.0/xcode/Config/StaticLibraryTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // StaticLibraryTarget.xcconfig 3 | // 4 | // These are static library target settings for libgtest.a. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | // This file is based on the Xcode Configuration files in: 7 | // http://code.google.com/p/google-toolbox-for-mac/ 8 | // 9 | 10 | // Static libs can be included in bundles so make them position independent 11 | GCC_DYNAMIC_NO_PIC = NO 12 | 13 | // Static libs should not have their internal globals or external symbols 14 | // stripped. 15 | STRIP_STYLE = debugging 16 | 17 | // Let the user install by specifying the $DSTROOT with xcodebuild 18 | SKIP_INSTALL = NO 19 | -------------------------------------------------------------------------------- /test/gtest-1.7.0/xcode/Config/TestTarget.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // TestTarget.xcconfig 3 | // 4 | // These are Test target settings for the gtest framework and examples. It 5 | // is set in the "Based On:" dropdown in the "Target" info dialog. 6 | 7 | PRODUCT_NAME = $(TARGET_NAME) 8 | HEADER_SEARCH_PATHS = ../include 9 | -------------------------------------------------------------------------------- /tools/Key.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aspnet/dnx/9030f4fa204337f5e213851b6c5d74c8ee034f98/tools/Key.snk -------------------------------------------------------------------------------- /tools/Microsoft.Dnx.TestHost.UI/App.xaml: -------------------------------------------------------------------------------- 1 |  6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tools/Microsoft.Dnx.TestHost.UI/App.xaml.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) .NET Foundation. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. 3 | 4 | using System.Windows; 5 | 6 | namespace Microsoft.Dnx.TestHost.UI 7 | { 8 | public partial class App : Application 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tools/Microsoft.Dnx.TestHost.UI/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | --------------------------------------------------------------------------------