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
0 answers
54 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 ...
user avatar
  • 45
0 votes
1 answer
26 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 ?
user avatar
  • 45
0 votes
0 answers
39 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.
user avatar
0 votes
2 answers
145 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 ...
user avatar
  • 45
0 votes
2 answers
94 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 ...
user avatar
  • 45
0 votes
1 answer
60 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 ...
user avatar
  • 45
2 votes
4 answers
226 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 ...
user avatar
  • 45
1 vote
2 answers
271 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 ...
user avatar
  • 31
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: ...
user avatar
4 votes
2 answers
610 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 ...
user avatar
  • 1,949
0 votes
1 answer
151 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) ...
user avatar
0 votes
1 answer
335 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 ...
user avatar
0 votes
1 answer
183 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 ...
user avatar
0 votes
0 answers
756 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 ...
user avatar
1 vote
0 answers
48 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 ...
user avatar
  • 111
1 vote
3 answers
343 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 ...
user avatar
  • 1,867
0 votes
1 answer
81 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 ...
user avatar
1 vote
2 answers
305 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()....
user avatar
1 vote
0 answers
205 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> <...
user avatar
0 votes
3 answers
267 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?
user avatar
2 votes
2 answers
263 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 ...
user avatar
0 votes
2 answers
217 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 ...
user avatar
  • 215
2 votes
0 answers
69 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 ...
user avatar
5 votes
2 answers
403 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' ...
user avatar
1 vote
1 answer
315 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 ...
user avatar
1 vote
1 answer
169 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!
user avatar
  • 151
1 vote
1 answer
151 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. ...
user avatar
  • 490
2 votes
2 answers
347 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 ...
user avatar
  • 45
0 votes
2 answers
630 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?
user avatar
  • 215
0 votes
1 answer
495 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 ...
user avatar
2 votes
1 answer
116 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 ...
user avatar
2 votes
0 answers
145 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 ...
user avatar
2 votes
1 answer
774 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 ...
user avatar
  • 2,041
8 votes
4 answers
11k 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 ...
user avatar
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 ...
user avatar
1 vote
0 answers
115 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 ...
user avatar
  • 257
1 vote
1 answer
385 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 ...
user avatar
3 votes
1 answer
629 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,...
user avatar
  • 2,041
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 ...
user avatar
  • 61
2 votes
1 answer
463 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 ...
user avatar
3 votes
1 answer
471 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 ...
user avatar
9 votes
1 answer
1k 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 ...
user avatar
  • 305
0 votes
2 answers
897 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 ...
user avatar
  • 173
2 votes
1 answer
116 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 ...
user avatar
6 votes
3 answers
790 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 ...
user avatar
  • 1,502
3 votes
1 answer
259 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 ...
user avatar
4 votes
2 answers
396 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 ...
user avatar