Questions tagged [visual-studio]

For Sitecore-specific questions related to Sitecore development in Visual Studio. This tag is not meant for general Visual Studio question, but rather only for those questions that specifically relate to Sitecore

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Publish option in Sitecore Helix visual studio extension

By default, while creating a project, this extension installs docker deploy configurations in the visual studio solution. Do we need to manually modify config files if we just want to deploy all files ...
0 votes
0 answers
93 views

Add a message in experience editor if datasource is not selected for a component in toolbox SXA

I need to add a message stating "Select the data source" in Experience Editor programmatically for Content Authors when the data source is null or the model is empty. I'm using the SXA ...
  • 45
0 votes
1 answer
27 views

Clear extra Sitecore SXA html tags from the site pages

I have SXA site pages and I need to clear the extra Sitecore html tags (script,link). After div tag Specification: Sitecore SXA 10.2 Can anyone provide any help ?
  • 45
0 votes
0 answers
73 views

Getting an error when trying to attach a process to a Docker Container

I am getting an error when I am trying to attach the process to a docker container.
0 votes
2 answers
366 views

Context is null in GlassMapperConfigurator

I'm trying to access Sitecore 10.2 model fields using Glass.Mapper.Sc.92 version 5.8, and registered all Glass.Mapper services in GlassMapperConfigurator class. However facing the "Context is ...
  • 45
0 votes
2 answers
175 views

Is custom view rendering possible in Sitecore SXA?

I have tried clone rendering of inbuilt promo component in Sitcore SXA ,that is a controller rendering. Is it possible to create a custom view rendering? If yes, then how to access the SXA model ...
  • 45
0 votes
1 answer
93 views

Unable to make Visual studio model fields editable in experience editor for Sitecore SXA

I'm using a custom Sitecore SXA controller rendering for the first time with Visual Studio and I want to make the model fields in the .cshtml view file editable in Sitecore Experience editor. Is there ...
  • 45
2 votes
4 answers
485 views

Cannot debug the Sitecore code in Visual Studio

I tried the procedure mentioned in the link https://www.youtube.com/watch?v=bboda7Gj5Hc&list=PLLYksLXV8OcG3-fKtMJgDixBFo3kfeCpD&index=21. But the breakpoints does not get hit and plus the code ...
  • 45
1 vote
2 answers
478 views

SVS.Build should not specify a version

Sitecore Visual Studio Project The package reference 'SVS.Build' should not specify a version. Please specify the version in 'xxx\Packages.props' or set VersionOverride to override the centrally ...
  • 41
2 votes
2 answers
2k views

Error Another setup is already running when trying to install TDS on VS2019

I have a Sitecore 9.3 XP0 instance installed on my machine and now I'm trying to set up the TDS v6.0.0.31 on my Visual Studio 2019 v16.10.1, but whenever I install it the following error is thrown: ...
4 votes
2 answers
975 views

Can we use Sitecore TDS with Visual Studio 2022 Preview 2?

On a new machine, I tried installing VS 2022 and TDS but TDS gives an error that it doesn't detect VS in that system. So the question is - Can we use Sitecore TDS with Visual Studio 2022 Preview 2 by ...
  • 1,959
0 votes
1 answer
175 views

Could not load type 'Sitecore.HealthCheck.DependencyInjection.HealthChecksBuilder'

I have 1 solution for Sitecore 9.3 with 4 projects (ASP .Net 4.7.1 MVC) using the Helix principles. I added references Sitecore.Kernel.NoReferences (9.0.180604), Sitecore.MVC.NoReferences (9.0.180604) ...
2 votes
0 answers
237 views

SetSite failed for package Error when Loading Sitecore Rocks Package using Visual Studio 2019

When loading a project in Visual Studio 2019 the Sitecore Rocks refuses to load properly. The error information is listed below. <description>SetSite failed for package [SitecorePackage]Source: ...
0 votes
1 answer
405 views

Sitecore.Kernel Version 10.0.0 fails to Install from Nuget Manager

I'm trying to install Sitecore.Kernel version 10.0.0 on Visual Studio 2019 solution running on .net framework 4.8 and I get following error. Severity Code Description Project File Line ...
1 vote
1 answer
200 views

Sitecore 9.3 Visual Studio setup help - errors on deploy

I've started trying to follow the Sitecore Platform Essentials for Developer eLearning which is going fine, but when I deploy the project, the site just breaks on start with an error about no ...
0 votes
0 answers
964 views

Error NU5012: Unable to find 'EnterpriseLibrary.Common.6.0.1304.0.nupkg'. Make sure the project has been built

I am trying to create a nuget package of my .NET Framework project - 'MyProj.csproj'. For this, I have created nuspec file using nuget.exe commands and have changed the assembly info as well. Now, on ...
1 vote
0 answers
51 views

How to build Sitecore Application with Visual Studio 2017 with MVC pattern OR HELIX methodology? [closed]

As i am new to sitecore and though i have basic understanding on how to create site through sitecore's content editor and using CMS. Now, i want to create a web application/website using Visual ...
1 vote
3 answers
412 views

Cannot run OData Connected Service tool and compatiblity errors

After upgrading to XC 9.3 I could not run the OData Connected Service tool. I fixed this by updating the Microsoft.OData.Client to version 7.6.3, but while regenerating the ServiceProxy for XC 9.3 I ...
  • 1,887
0 votes
1 answer
92 views

How to identify configured tasks in visual studio

I would like to understand an existing VS project build/publish scripts. this project was built using sitecore helix architecture. Currently i dont see any tasks configured for the project. In the ...
1 vote
2 answers
372 views

Insert Image in Div style property using View Rendering

I am trying to add an image in the div style property, above which some text would be shown, Below is the code I wrote : <div class="c-tile -red " style="background-image:url(@Html.Sitecore()....
2 votes
0 answers
268 views

<projectname>.wpp.targets ignores Release build

We are facing an issue with <projectname>.wpp.targets file. Here is our .wpp.target file: <Project> <!-- Exclude Sitecore assemblies --> <ItemGroup> <...
0 votes
3 answers
315 views

Should ConnectionStrings.config be in source control/VS?

Or alternatively should ConnectionStrings.config just be left up to the server environment and never part of your VS publish?
2 votes
2 answers
284 views

Should you create your Visual Studio Solution inside the Sitecore website root?

By Sitecore website root I mean the SIM-installed site at C:/inetpub/MySCSite1/Website Or should the Visual Studio solution, and thus source control base, be OUTSIDE/separate from the Sitecore ...
0 votes
2 answers
260 views

Using TDS and Visual Studio for development, Command-line Git for version control

Does TDS have to have access to the version control server? My development environment is in a VM with no network access. I use Visual Studio in there and then push the changes to version control from ...
  • 215
2 votes
0 answers
70 views

Migrating Helix-based csproj to VS 2017 format: Published files go to wrong place

As part of a migration to Sitecore 9.1.1 we are updating our solution to not only be VS2017 compatible, but trying to take advantage of migrating away from both packages.config and the VS2015 csproj ...
5 votes
2 answers
477 views

How to view history of yml files (before they have pending changes)

Is there any way in regular Visual Studio (2017) to view the history of individual yml (unicorn serialization) files? Once you have changed a serialized Sitecore item it appears under the 'Changes' ...
1 vote
1 answer
333 views

Why can't I install Sitecore.Kernel v9.1.1 via Nuget?

I am upgrading an old VS project that was built using Sitecore 7.2. I have changed the target .NET Framework to 4.7.1. Now I am trying to install Sitecore.Kernel v9.1.1 via Nuget. However when I ...
1 vote
1 answer
182 views

Sitecore Rocks icons not loading in "Set Icon..." menu

I can't select an icon from Sitecore Rocks "Set Icon.." menu, as the selection windows is always empty - previously it working fine. I already tried restarting VS, Sitecore and my PC. Thanks!
  • 151
1 vote
1 answer
162 views

TDS creating duplicate properties for component in TdsCodeGen.cs

For some reason, TDS has started creating duplicate properties for one of my "constants" partial classes as well as the associated interface in my TdsCodeGen.cs. It's only doing it for one component. ...
  • 520
2 votes
2 answers
362 views

Error while trying to connect to Sitecore using VS 2015

I'm trying to connect to my single-instance of Sitecore hosted on Azure using Visual Studio 2015 (with the Sitecore Rocks plugin). I get this error message saying 'Welcome to Sitecore, do you want to ...
  • 45
0 votes
2 answers
704 views

TDS 500 error, how do I test my TDS connection for more specific errors?

Getting an HTTP 500 error in Team Development for Sitecore when syncing or doing any operation. How do I test my TDS connection for more specific errors?
  • 215
0 votes
1 answer
530 views

Unable to compile and deploy Sitecore.Commerce.SDK project

I am following Sitecore documentation for installing Sitecore Commerce 8.2.1. I am done with almost all the steps required except the part Deploy the Commerce Engine. As mentioned there, if I unzipped ...
2 votes
1 answer
132 views

Developing a Module as a Visual Studio Project: how to copy the relevant files upon build? How to organise the VS Project?

I developed a Sitecore Control in its own separate Visual Studio Project. In order for it to work, it needs (among other things) to have some of its files copied to the Startup Project. I have been ...
2 votes
0 answers
153 views

TDS File Replacement for folders not working

My TDS project has 2 Source Web Projects selected in Properties, WebProj1 and WebProj2 and I want to use TDS File Replacement to deploy some front end folders that to the website root. After I am ...
2 votes
1 answer
870 views

How to fix the Global.asax warnings in a Sitecore 9 (Update-1) Visual Studio solution?

In the Sitecore® Experience Solution Developer Course you learn to set up a Visual Studio solution for Sitecore 8 by doing the following steps: Create a new ASP.NET Web Application using the Empty ...
  • 2,051
8 votes
4 answers
12k views

Excluding files like web.config when using publishing in VS 2017

I am trying to find out how to exclude files when using the publishing feature in VS (2017 to be exact). The documentation is not great, but it seems adding <ItemGroup> <Content ...
10 votes
2 answers
2k views

System.EntryPointNotFoundException when loading Sitecore 9.0

On Sitecore 9.0, when I attempt to load any URL, I get an Owin startup exception with the following details: System.EntryPointNotFoundException: The following errors occurred while attempting to load ...
1 vote
0 answers
118 views

TDS Package Bundling does not work with NuGet Package Generation

I am attempting to separate and version the Helix Foundation Layer modules into its own solution. I am using TDS/VS2017/Sitecore_8.1U2. Based on documentation, I would like to generate an Update ...
  • 257
1 vote
1 answer
387 views

Sitecore Rocks Installation seems corrupted. What to do?

Having recently moved my development environment to another machine, I discovered that Sitecore Rocks no longer works as before; in particular, I cannot access the "Design Template" menu ...
3 votes
1 answer
669 views

Why I am getting these issues with Sitecore Helix Visual Studio Templates (Anders Laub) on Visual Studio 2017?

I've installed the Sitecore Helix Visual Studio Templates from Anders Laub (laub plus co) and created an empty Helix project running Visual Studio 2017 in Administrator mode. Once I add a new Project,...
  • 2,051
4 votes
2 answers
2k views

TDS project not loading while migrating solution from VS 2013 to VS 2017

I am in the process of migrating my solution from VS 2013 to VS 2017. I installed the correct version of TDS (TDS 5.6.0.15 for VS 2017) and when trying to open the solution in VS 2017, TDS projects ...
  • 71
2 votes
1 answer
482 views

Sitecore Rocks stuck in the "Add New Item" menu whilst connecting using Good Old Web Sevice? [closed]

I am using Visual Studio Professional 2013, and Sitecore 8.1. My project is configured using the Good Old Web Service. Whenever I try to add a new item, all I get in the dialog where I'm supposed to ...
3 votes
1 answer
480 views

Sitecore Commerce Demo (Sitecore.Demo.Retail) - problem with gulp / MSBuild 15

EDIT: more details I'm working on converting the Sitecore.Demo.Retail project from VS 2015 (.NET core preview) to VS 2017 and latest .NET Core. The solution now builds perfectly fine in Visual ...
9 votes
1 answer
2k views

Working on Habitat with VS 2017

Set up the habitat solution all nice and smooth. However when trying to run the gulp task to get unicorn to sync I get a bunch of errors like this in the gulp output: error MSB4019: The imported ...
  • 305
0 votes
2 answers
916 views

Sitecore 8.2 Glass.Mapper strange intellisense errors in cshtml files

I'm having a lot of trouble getting our solution working in VS 2015 using the latest version of Glass. As suggested previously I have checked all projects and they now all have consistent DLL version ...
  • 173
2 votes
1 answer
121 views

TDS File Replacement per user

I am using TDS File Replacement to manage configs. I would like to be able to do this per user, so each user can set up their environment however they wish. Right now, each user would need his or her ...
6 votes
3 answers
849 views

Why do we need global.asax in Sitecore VS solution?

I'm just going through the Sitecore documentation for setting up a Visual Studio project. One of the steps is to update the global.asax file in your solution: In the Visual Solution folder, copy ...
  • 1,512
3 votes
1 answer
261 views

Field names in content editor are wrong (multiple colons and no capitalisation) but fine in VS

I have a situation where I have a template and thus content items of that template whereby the field names seem to have problems in the content editor but not in visual studio. Notice below that ...
4 votes
2 answers
398 views

Adding Views - VS Adds Scaffolding and NuGets

Can people suggest a good way to add views to a project in Visual Studio? The standard MVC way adds scaffolding (Folders named for controllers) and NuGet packages (MVC, Razor, WebPages, etc...) I'm ...