コード例 #1
0
 public void ProjectFinishedGenerating(Project project)
 {
     if (_wizard != null)
     {
         _wizard.ProjectFinishedGenerating(project);
     }
 }
コード例 #2
0
ファイル: MainWizard.cs プロジェクト: oeoen/SharpDX
        public void ProjectFinishedGenerating(Project project)
        {
            if (winRTCertificateWizard != null)
            {
                winRTCertificateWizard.ProjectFinishedGenerating(project);
            }

            // Because SharpDX assemblies cannot be compiled with Any CPU on Windows Phone 8
            // We need to patch the generated solution file to force solution config "Any CPU" to use a
            // project platform "x86" instead of "Any CPU", otherwise the project will not compile in Any CPU
            // by default.
            // Once They will provide DllImport on Windows Phone 8, we will be able to remove this annoying code.
            if (isPlatformWP8)
            {
                try
                {
                    var solution      = dte.Solution as Solution2;
                    var solutionBuild = (SolutionBuild2)solution.SolutionBuild;
                    foreach (SolutionConfiguration2 solutionConfiguration in solutionBuild.SolutionConfigurations)
                    {
                        if (solutionConfiguration.PlatformName == "Any CPU")
                        {
                            foreach (SolutionContext solutionContext in solutionConfiguration.SolutionContexts)
                            {
                                solutionContext.ConfigurationName = solutionContext.ConfigurationName + "|x86";
                            }
                        }
                    }
                }
                catch (Exception ex)
                {
                    // Don't bother if we failed to do anything with the solution, let the code generator continue.
                }
            }
        }
コード例 #3
0
        public void ProjectFinishedGenerating(Project project)
        {
            if (selectedProjectIndex >= 0)
            {
                try
                {
                    VSProject vsProj = project.Object as VSProject;
                    vsProj.References.AddProject(projects[selectedProjectIndex]);
                }
                catch (Exception ex)
                {
                    // Known issue, remove when fixed
                    if (!ex.Message.Equals("Error HRESULT E_FAIL has been returned from a call to a COM component."))
                    {
                        throw;
                    }
                }
            }

            // Call the NuGet Wizard ProjectFinishedGenerating to add the reference
            if (nugetWizard != null)
            {
                nugetWizard.ProjectFinishedGenerating(project);
            }
        }
コード例 #4
0
 public void ProjectFinishedGenerating(Project project)
 {
     if (dte == null)
     {
         NuGetWizard.ProjectFinishedGenerating(project);
     }
 }
コード例 #5
0
        public void ProjectFinishedGenerating(Project project)
        {
            _projectSetupService.SetupM2IntranetProject(project, _projectOptions);

            if (_nuGetWizard != null)
            {
                _nuGetWizard.ProjectFinishedGenerating(project);
            }
        }
        public void ProjectFinishedGenerating(Project project)
        {
            NuGetWizard.ProjectFinishedGenerating(project);

            // copy lib
            try
            {
                var solutiondirectory = Path.GetDirectoryName(dte.Solution.FullName);
                var projectDirectory  = Path.GetDirectoryName(project.FullName);
                var directory         = Path.Combine(projectDirectory, @"..\..");

                if (!Directory.Exists(directory) || directory.IsParentDirectoryOf(solutiondirectory))
                {
                    directory = solutiondirectory;
                }

                //directory.CreateLib(Resources, true);
                //directory.UnpackZipToLib(ResourceArchives);
            }
            catch { }
        }
コード例 #7
0
ファイル: MainWizard.cs プロジェクト: bsmr/sharpdx-Toolkit
        public void ProjectFinishedGenerating(Project project)
        {
            if (winRTCertificateWizard != null)
            {
                winRTCertificateWizard.ProjectFinishedGenerating(project);
            }

            try
            {
                var services       = new ServiceProvider(dte as Microsoft.VisualStudio.OLE.Interop.IServiceProvider);
                var componentModel = (IComponentModel)services.GetService(typeof(SComponentModel));
                var packageManager = componentModel.GetService <IVsPackageInstaller>();

                packageManager.InstallPackage(null, project, "SharpDX.Toolkit.Game", (string)null, false);
                packageManager.InstallPackage(null, project, "SharpDX.Toolkit.Input", (string)null, false);
            }
            catch (Exception)
            {
                MessageBox.Show("Unable to install nuget SharpDX.Toolkit.Game package. Please install it manually", "Error installing SharpDX nuget package", MessageBoxButtons.OK);
            }
        }
コード例 #8
0
ファイル: CloudServiceWizard.cs プロジェクト: szh2bg/PTVS
 public void ProjectFinishedGenerating(Project project)
 {
     AssertWizard();
     _wizard?.ProjectFinishedGenerating(project);
 }