public override IEnumerable <PackageDependency> GetPackages(PlatformID platformID)
        {
            // There isn't an official nuget for Unity, sadly, so add this feed to test/data/nuget.config
            // <add key="unity-testlibs" value="https://myget.org/F/resharper-unity/api/v2/" />
            switch (myVersion)
            {
            case UnityVersion.Unity54:
                yield return(ParsePackageDependency("resharper-unity.testlibs/5.4.0"));

                if (IncludeNetworking)
                {
                    throw new InvalidOperationException("Network libs not available for Unity 5.4");
                }
                break;

            case UnityVersion.Unity55:
                yield return(ParsePackageDependency("resharper-unity.testlibs/5.5.0"));

                if (IncludeNetworking)
                {
                    yield return(ParsePackageDependency("resharper-unity.testlibs.networking/5.5.0"));
                }
                break;
            }
            foreach (var package in base.GetPackages(platformID))
            {
                yield return(package);
            }
        }
Exemple #2
0
 internal T4ResolveProject([NotNull] Lifetime lifetime, [NotNull] ISolution solution, [NotNull] IShellLocks shellLocks,
                           [NotNull] PlatformID platformID, [NotNull] IUserDataHolder dataHolder)
 {
     _shellLocks                = shellLocks;
     _solution                  = solution;
     _dataHolder                = dataHolder;
     _projectProperties         = new T4ResolveProjectProperties(platformID);
     _projectFileLocationLive   = new Property <FileSystemPath>(lifetime, "ProjectFileLocationLive");
     _projectLocationLive       = new Property <FileSystemPath>(lifetime, "ProjectLocationLive");
     _targetFrameworkReferences = new TargetFrameworkReferences(lifetime, shellLocks, this, solution.SolutionOwner.GetComponent <AssemblyInfoDatabase>());
 }
 public override IEnumerable<PackageDependency> GetPackages(PlatformID platformID)
 {
     // There isn't an official nuget for Unity, sadly, so add this feed to test/data/nuget.config
     // <add key="unity-testlibs" value="https://myget.org/F/resharper-unity/api/v2/" />
     switch (myVersion)
     {
         case UnityVersion.Unity54:
             yield return TestPackagesAttribute.ParsePackageDependency("resharper-unity.testlibs/5.4.0");
             break;
         case UnityVersion.Unity55:
             yield return TestPackagesAttribute.ParsePackageDependency("resharper-unity.testlibs/5.5.0");
             break;
     }
     foreach (var package in base.GetPackages(platformID))
         yield return package;
 }
        public override IEnumerable <PackageDependency> GetPackages(PlatformID platformID)
        {
            // There isn't an official nuget for Unity, sadly, so add this feed to test/data/nuget.config
            // <add key="unity-testlibs" value="https://myget.org/F/resharper-unity/api/v2/" />
            switch (myVersion)
            {
            case UnityVersion.Unity54:
                yield return(TestPackagesAttribute.ParsePackageDependency("resharper-unity.testlibs/5.4.0"));

                break;

            case UnityVersion.Unity55:
                yield return(TestPackagesAttribute.ParsePackageDependency("resharper-unity.testlibs/5.5.0"));

                break;
            }
            foreach (var package in base.GetPackages(platformID))
            {
                yield return(package);
            }
        }
Exemple #5
0
 internal T4ResolveProjectProperties([NotNull] PlatformID platformID, [NotNull] TargetFrameworkId targetFrameworkId)
     : base(EmptyList <Guid> .InstanceList, platformID, Guid.Empty, new[] { targetFrameworkId }, dotNetCoreSDK: null)
 {
 }
 public PlatformID GetPlatformID()
 {
     return(PlatformID.CreateFromName(".NETFrameWork", new Version(4, 0)));
 }
Exemple #7
0
        protected override Pair <IProjectDescriptor, IList <Pair <IProjectReferenceDescriptor, IProjectReferenceProperties> > > CreateProjectDescriptor(PlatformID platformID, string projectName, string outputAssemblyName, ICollection <FileSystemPath> absoluteFileSet, ICollection <KeyValuePair <TargetFrameworkId, IEnumerable <string> > > libraries, Guid projectGuid)
        {
            var projectDescriptor    = base.CreateProjectDescriptor(platformID, projectName, outputAssemblyName, absoluteFileSet, libraries, projectGuid);
            var activeConfigurations = projectDescriptor.First.ProjectProperties.ActiveConfigurations;
            var projectConfiguration = (CSharpProjectConfiguration)activeConfigurations.GetOrCreateConfiguration(TargetFrameworkId.Default);
            var testUnityAttributes  = GetClassAttributes <TestUnityAttribute>().Single();

            projectConfiguration.DefineConstants = testUnityAttributes.DefineConstants;
            return(projectDescriptor);
        }
 public override IProjectProperties GetProjectProperties(PlatformID platformId, ICollection<Guid> flavours)
 {
     return VCXProjectPropertiesFactory.CreateVCXProjectProperties(platformId, flavours);
 }
Exemple #9
0
 public override IProjectProperties GetProjectProperties(PlatformID platformId, IReadOnlyCollection <TargetFrameworkId> targetFrameworkIds, ICollection <Guid> flavours)
 {
     return(VCXProjectPropertiesFactory.CreateVCXProjectProperties(platformId, flavours, targetFrameworkIds));
 }
Exemple #10
0
 internal T4ResolveProjectProperties([NotNull] PlatformID platformID)
     : base(EmptyList <Guid> .InstanceList, platformID, Guid.Empty)
 {
 }
 public override IProjectProperties GetProjectProperties(PlatformID platformId, ICollection <Guid> flavours)
 {
     return(VCXProjectPropertiesFactory.CreateVCXProjectProperties(platformId, flavours));
 }