BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
Hello,
I am Patricio, I am beginner with syncfusion and I am using version 23.1.36.
I am trying to create a new project using template studio like the steps in the webpage at the next link but when I clic create at step 7, for a new project with .net frameqork 4.6.1 on Visual Studio 2022, because the step 8 do not show in this case, the project do not load and I see the next message: (I am including screen and the text in more details), Thanks for help.
The text in more details:
System.Exception: Error al ejecutar 'Microsoft.Templates.Core.PostActions.Catalog.AddContextItemsToSolutionAndProjectPostAction'. Plantilla relacionada: None. ---> System.Exception: Error al agregar el proyecto C:\PatricioR-training\CodeSampleTraining\Syncfusion\WinForms\SyncfusionWinFormsApp1\SyncfusionWinFormsApp1\SyncfusionWinFormsApp1.csproj ---> Microsoft.Build.Exceptions.InvalidProjectFileException: La expresión "[Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries(.NETFramework, v461, '', AnyCPU, '', '')" no se puede evaluar. La parte de la cadena de versión es demasiado corta o larga. C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets
en Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
en Microsoft.Build.Evaluation.Expander`2.Function`1.Execute(Object objectInstance, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation)
en Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertyBody(String propertyBody, Object propertyValue, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem)
en Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveTypedAndEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem, LoggingContext loggingContext)
en Microsoft.Build.Evaluation.Expander`2.PropertyExpander`1.ExpandPropertiesLeaveEscaped(String expression, IPropertyProvider`1 properties, ExpanderOptions options, IElementLocation elementLocation, UsedUninitializedProperties usedUninitializedProperties, IFileSystem fileSystem, LoggingContext loggingContext)
en Microsoft.Build.Evaluation.Expander`2.ExpandIntoStringLeaveEscaped(String expression, ExpanderOptions options, IElementLocation elementLocation, LoggingContext loggingContext)
en Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyElement(ProjectPropertyElement propertyElement)
en Microsoft.Build.Evaluation.Evaluator`4.EvaluatePropertyGroupElement(ProjectPropertyGroupElement propertyGroupElement)
en Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
en Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
en Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
en Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
en Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
en Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
en Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
en Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
en Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
en Microsoft.Build.Evaluation.Evaluator`4.Evaluate()
en Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, Project project, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, IDirectoryCacheFactory directoryCacheFactory, ProjectRootElementCacheBase projectRootElementCache, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean interactive)
en Microsoft.Build.Evaluation.Project.ProjectImpl.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
en Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
en Microsoft.Build.Evaluation.Project.ProjectImpl.ReevaluateIfNecessary(EvaluationContext evaluationContext)
en Microsoft.Build.Evaluation.Project.ProjectImpl.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext, Boolean interactive)
en Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, Boolean interactive)
en Microsoft.VisualStudio.Build.ComInteropWrapper.ProjectShim.LoadProjectWithSettings(String projectFileName, ProjectLoadSettingsShim projectLoadSettings)
en System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
en Microsoft.VisualStudio.CommonIDE.Solutions.ProjectTypeManager.OpenProject(Guid& projectTypeGuid, String lpszCaption, String lpszFile, String lpszLocation, String lpszName, UInt32 grfCreateFlags)
en Microsoft.VisualStudio.CommonIDE.Solutions.ProjectTypeManager.OpenProject(Project pProject, Guid& rguidProjType, String lpszCaption, String lpszFile, String lpszLocation, String lpszName, __VSCREATEPROJFLAGS grfCreateFlags, Boolean& pfMustSetProjectTrustLevel)
en Microsoft.VisualStudio.CommonIDE.Solutions.Solution.<HrCreateProjectAsync>d__406.MoveNext()
en System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
en Microsoft.VisualStudio.CommonIDE.Solutions.Dte.DteSolution.AddFromFile(String FileName, Boolean fExclusive)
en EnvDTE._Solution.AddFromFile(String FileName, Boolean Exclusive)
en Syncfusion.Templates.UI.VisualStudio.VsGenShell.<>c__DisplayClass17_0.<<AddProject>b__0>d.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
en Syncfusion.Templates.UI.VisualStudio.VsGenShell.AddProject(String project)
--- Fin del seguimiento de la pila de la excepción interna ---
en Syncfusion.Templates.UI.VisualStudio.VsGenShell.AddProject(String project)
en Syncfusion.Templates.UI.VisualStudio.VsGenShell.AddContextItemsToSolution(ProjectInfo projectInfo)
en Microsoft.Templates.Core.PostActions.PostAction.Execute()
--- Fin del seguimiento de la pila de la excepción interna ---
en Microsoft.Templates.Core.PostActions.PostAction.Execute()
en Microsoft.Templates.Core.Gen.GenController.ExecuteGlobalPostActions()
en Microsoft.Templates.Core.Gen.GenController.<GenerateItemsAsync>d__4.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Microsoft.Templates.Core.Gen.NewProjectGenController.<UnsafeGenerateProjectAsync>d__4.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
en Syncfusion.Templates.UI.Services.GenerationService.<GenerateProjectAsync>d__5.MoveNext()
Hi Patricio
Please note that Syncfusion WinForms Template Studio is available from version
v24.1.41, But you mention that you are using the v23.1.0.36.
The App Features option is not accessible for .NET Framework. That is why step eight “App feature” option does not show.
Based on the mentioned guidelines, we create a WinForms project with the help of Windows Form Template Studio.
For your reference, attached is the video demo. Please have a look at it.
Can you please share your proper Syncfusion version and
control details?
Regards,
Santhosh.G
Hello
I installed version 24.1.41 actually, but when I am trying to build the windows form template of Syncfution, I get the same error. I attach a video for show the error and the output text in txt files, I hope get help for this, thanks.
Hi.
I have the same error.
When I create new project
version 24.1.41
While creating a new project using Template Studio in WinForms/WPF, we did not encounter any issues on our end. For your reference, we have attached a video demonstrating the project creation process.
Could you please confirm the following details:
Regards,
DhivyaBharathi Dakshinamurthy
Si os sirve de ayuda, el mensaje .net que da error indica que un parámetro de la cadena de la version es vacia o demasiado larga. GetPathTostandarlibraries.
If it helps, the .net error message indicates that a parameter in the version string is empty or too long. GetPathTostandardlibraries.
Hello,
The next images are from Visual Studio Version and OS Windows 10 pro with more details
DxDiag
Syncfusion version:
Thanks for help.
Hi Patricio ,
We are currently investigating the reported issue with the mentioned version of Visual Studio and its controls. However, we are unable to replicate the issue. We will continue to investigate the scenario further. In the meantime, please uninstall and reinstall the WPF TemplateStudio extension, and then check if the reported issue still persists.
Hi.
I did that, I mean: uninstall and reinstall but the error persist.
I download "
Essential Studio Enterprise Edition - Community license"
Hi Patricio,
We have reviewed the issue you reported regarding our WinForms Template Studio. We were able to reproduce the issue when the selected framework version SDK is not installed. However, if the corresponding framework version is installed, the issue does not occur. Therefore, if the selected Framework SDK version is not installed, please install the specified .NET Framework version SDK on your machine and create the Syncfusion WinForms application using our template studio.
If the issue still persists, kindly provide a clear video demonstration (the video already provided does not have the issue reproducing steps) for further investigation. Also, please provide the following additional details:
In Visual Studio, go to Extensions -> Manage Extensions -> Installed and search for the Syncfusion extensions by providing the keyword “syncfusion" in the search box. Share the screenshot of that dialog.
In Visual Studio, go to Help > About Microsoft Visual Studio and click the Copy Info button. Then, paste the information into a text file and share it with us.
Gather log file. Please follow the steps in the link to get the Gather log file.
Regards,
Valan
Hello,
I tried to search for versions installed in my windows PC.
I can't find the .net framework 4.6.1 version installed
in regedit, but I know It is installed, I share you a video the
Gather log file.
I tried make a project with
WinForms with Syncfution TemplateStudio with .net framework 4.8 and the error hapened too.
Hello,
Excuseme but I can't attach the video with the previous message.
And the content in (
Help > About Microsoft Visual Studio
)
Microsoft Visual Studio Community 2022
Versión 17.8.3
VisualStudio.17.Release/17.8.3+34330.188
Microsoft .NET Framework
Versión 4.8.09037
Versión instalada: Community
ADL Tools Service Provider 1.0
This package contains services used by Data Lake tools
Administrador de paquetes NuGet 6.8.0
Administrador de paquetes NuGet de Visual Studio. Para obtener más información acerca de NuGet, visite https://docs.nuget.org/
ASA Service Provider 1.0
ASP.NET and Web Tools 17.8.358.6298
ASP.NET and Web Tools
Azure Data Lake Tools for Visual Studio 2.6.5000.0
Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 17.8.358.6298
Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.6.5000.0
Microsoft Azure Stream Analytics Tools for Visual Studio
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.4.39 (main@e8108eb)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Extensión de VSPackage 1.0
Información detallada de la extensión de Visual Studio de VSPackage
Herramientas de Azure App Service v3.0.0 17.8.358.6298
Herramientas de Azure App Service v3.0.0
Herramientas de C# 4.8.0-7.23572.1+7b75981cf3bd520b86ec4ed00ec156c8bc48e4eb
Los componentes de C# utilizados en el IDE. En función del tipo de proyecto y la configuración, se podría utilizar una versión diferente del compilador.
Herramientas de TypeScript 17.0.20920.2001
Herramientas de TypeScript para Microsoft Visual Studio
Herramientas de Visual Basic 4.8.0-7.23572.1+7b75981cf3bd520b86ec4ed00ec156c8bc48e4eb
Los componentes de Visual Basic utilizados en el IDE. En función del tipo de proyecto y la configuración, se podría utilizar una versión diferente del compilador.
Herramientas de Visual F# 17.8.0-beta.23475.2+10f956e631a1efc0f7f5e49c626c494cd32b1f50
Herramientas de Microsoft Visual F#
Microsoft Azure Hive Query Language Service 2.6.5000.0
Language service for Hive query
Microsoft Azure Stream Analytics Language Service 2.6.5000.0
Language service for Azure Stream Analytics
Microsoft Azure Tools para Visual Studio 2.9
Compatibilidad con proyectos de Azure Cloud Services
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Mono Debugging for Visual Studio 17.8.17 (957fbed)
Support for debugging Mono processes with Visual Studio.
Razor (ASP.NET Core) 17.8.3.2358002+8c7fb27bf8e8d4f9ff8080b624b35bca5e812e97
Proporciona servicios de lenguajes para ASP.NET Core Razor.
SQL Server Data Tools 17.8.119.0
Microsoft SQL Server Data Tools
Syncfusion .NET MAUI Template Studio 24.1.41
Provides project templates for creating an .NET MAUI Application using Syncfusion Maui components.
Syncfusion ASP.NET Core Project Templates 24.1.41
Provides project templates for creating an ASP.NET Core Web Application using Syncfusion ASP.NET Core components.
Syncfusion ASP.NET MVC Project Templates 24.1.41
Provides project templates for creating ASP.NET MVC Web Applications using Syncfusion components.
Syncfusion Blazor Code Generator 24.1.41
Insert Syncfusion components code snippet in the existing razor file of Blazor application
Syncfusion Blazor Template Studio 24.1.41
Provides project templates for creating an Blazor Application using Syncfusion Blazor components.
Syncfusion Reference Manager 24.1.41
A useful add-in for adding and migrating Syncfusion Assembly References for Windows Forms, WPF, and Silverlight projects.
Syncfusion WinForms Template Studio 24.1.41
Plantillas de proyecto para crear aplicaciones WinForms utilizando componentes Syncfusion WinForms.
Syncfusion WPF Project Templates 24.1.41
Provides Project/Item Templates to add Syncfusion WPF Project/Item along with corresponding configurations.
Syncfusion Xamarin Project Templates 24.1.41
A multi-project template for building iOS, Android, and Windows apps using Syncfusion Xamarin components.
Syncfusion Xamarin Toolbox 24.1.41
Syncfusion Essential Studio for Xamarin Toolbox Visual Studio extension.
Syncfusion.VSExtension.Troubleshooter 24.1.41
Add-in for Troubleshooting the Syncfusion projects.
Syncfusion.WindowsForms.Package 21.2.3
Provides Item/Project Templates to add Syncfusion Windows Forms Item/Project along with corresponding configurations.
SyncfusionMenu Extension 24.1.41
SyncfusionMenu Visual Studio Extension Detailed Info
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
Visual Studio IntelliCode 2.2
Desarrollo asistido por AI para Visual Studio.
VisualStudio.DeviceLog 1.0
Información sobre el paquete
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Xamarin 17.8.0.156 (d17-8@bd02f18)
Extensión de Visual Studio para habilitar la implementación de Xamarin.iOS y Xamarin.Android.
Xamarin Designer 17.8.3.6 (remotes/origin/d17-8@eccf46a291)
Extensión de Visual Studio para habilitar las herramientas de Xamarin Designer en Visual Studio.
Xamarin.Android SDK 13.2.2.0 (d17-5/45b0e14)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: d9a6e87
Java.Interop: xamarin/java.interop/d17-5@149d70fe
SQLite: xamarin/sqlite/3.40.1@68c69d8
Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@ca1552d
Hi Patricio,
We have reviewed the attachments you provided, but we were unable to identify the selected framework version installed or not in your machine. To verify whether the selected framework version is installed or not, please follow these steps:
Step 1:
Create a default Microsoft Windows Forms App (.NET Framework) project. In the framework combobox, you will find a list of installed framework versions. Verify if the selected framework version is present. If not, please follow the step 2 to install it.
Step 2:
1. Search for Visual Studio Installer.
2. Open Visual Studio Installer.
3. Click on the "Modify" option for Visual Studio 2022.
4. Choose "Individual components."
5. Verify if the .NET framework version SDK is selected.
If the selected framework version is not chosen, select it, and click the "Modify" button at the bottom right to initiate the download if needed.
These steps will help you determine whether the chosen framework version is installed.
Also, when creating a Syncfusion WinForms template studio project with a specific framework version, if a pop-up window appears as shown in the attached image, click on the download option in the pop-up window.
If still the issue persists, kindly try to reinstall, or repair Visual Studio 2022, and then again try to use the Syncfusion WinForms template studio since we suspects that the Visual Studio may not installed properly in your machine.
Regards,
Valan
I'm curious. I got the same issue trying to create a new WPF project. The SyncFusion Template runs perfectly with .NET 8. But I need to develop for .NET Framework 4.8. With Windows Forms it's the same.
Well I un- and reinstalled SyncFusion Essentials, I un- and reinstalled the whole Visual Studio. Still the same. :´-(
Hope there will be a solution.
Hi Michael,
Root Cause:
Upon reviewing your query, it appears that you've taken steps to uninstall and reinstall Visual Studio and Syncfusion Essentials, like the process discussed for Windows Forms projects. However, it seems you haven't checked whether the selected framework version is properly installed on your machine, as mentioned in our previous response. We suspect that your selected framework may not be installed, which could be causing this issue.
Solution:
Please follow these steps below, similar to those outlined for Windows Forms projects, to ensure that the required .NET Framework version is properly installed and selected in Visual Studio.
Step 1:
Create a default Microsoft WPF App (.NET Framework) project. In the framework combobox, you will find a list of installed framework versions. Verify if the selected framework version is present. If not, please follow the step 2 to install it.
Step 2:
1. Search for Visual Studio Installer.
2. Open Visual Studio Installer.
3. Click on the "Modify" option for Visual Studio 2022.
4. Choose "Individual components."
5. Verify if the .NET framework version SDK is selected.
If the selected framework version is not chosen, select it, and click the "Modify" button at the bottom right to initiate the download if needed.
These steps will help you determine whether the chosen framework version is installed.
Also, when creating a Syncfusion WPF template studio project with a specific framework version, if a pop-up window appears as shown in the attached image, click on the download option in the pop-up window.
We believe this will resolve your reported issue. If the issue persists, kindly provide a clear video demonstration of the issue you are facing for further investigation. Also, please provide the following additional details:
Regards,
Sivasankar M.
Thanks for your reply. I already develop .NET Framework WPF apps with versions 4.7.2 and 4.8.
I had to delete the attachment due to copyright issues - music was running during recording. I will recreate a video tomorrow, but it shows the same issue like other videos here.
I tried like you said. .NET Framework 4.8 is definitely installed. And due to the fact I completely un- and reinstalled Visual Studio 2022 and SyncFusion Essentials, both are up to date.
Hi Michael,
We have created a separate ticket for your issue. Please follow up on the ticket for further updates.
Regards,
Kalavathi Nallathambi
Hi,
can you please check, if SyncFusion WPF Template Studio supports .NET Framework? As far as I could research, it does not. At least Microsoft Template Studio only supports .NET 6 oder .NET 8, but NOT .NET Framework, no matter which version.
I tried a clean install on a cloud machine under Windows Server 2019 with a clean install of visual studio 2022 and SyncFusion and got the same errors.
So I installed SyncFusion 22.1.34, and it works perfectly with the Template "Sync Fusion WPF Application" but without "Template Studio". Same with "Sync Fusion Windows Forms Application".
Too bad - I'm still supposed to develop using .NET Framework 4.8.
Greeting from Frankfurt, Germany
Hi Michael,
We have provided a response to your query in the ticket already created for you. Kindly refer to that ticket for any further updates.
Regards,
Sivasankar M.