Greetings -
I've added a new project to the 'application.sln' in VS2017. Every time I close the SLN file and re-open, the newly added project is missing. I then have to re-add it (Right click-->Add-->Existing Project...).
I'm getting the below error in VS2017 after I've re-added the missing project and tried to re-build.
Severity Code Description Project File Line Suppression State
Error It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. D:\UserData\Documents\Radzen Projects\zfDemo_dotNet2\client\node_modules\selenium-webdriver\lib\test\data\Web.Config 29
Should I be able to add additional Project to the 'application.sln'?
...additionally, seeing this error when I try to build/run the Radzen application...
radzen: Generating code ...
radzen: Code generation done in 59ms.
dotnet: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ObsoleteReferences.targets(33,5): warning NETSDK1059: The tool 'Microsoft.EntityFrameworkCore.Tools.DotNet' is now included in the .NET Core SDK. Information on resolving this
dotnet: warning is available at (Breaking changes in .NET Core 2.1 - .NET | Microsoft Learn). [D:\UserData\Documents\Radzen Projects\zfDemo_dotNet2\server\project.csproj]
dotnet: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ObsoleteReferences.targets(33,5): warning NETSDK1059: The tool 'Microsoft.EntityFrameworkCore.Tools.DotNet' is now included in the .NET Core SDK. Information on resolving this warning is available at (Breaking changes in .NET Core 2.1 - .NET | Microsoft Learn). [D:\UserData\Documents\Radzen Projects\zfDemo_dotNet2\server\project.csproj]
dotnet: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(153,5): warning NETSDK1071: A PackageReference to 'Microsoft.AspNetCore.All' specified a Version of 2.0.0. Specifying the version of this package is not recommended. For more information, see .NET project SDK overview | Microsoft Learn [D:\UserData\Documents\Radzen Projects\zfDemo_dotNet2\server\project.csproj]
dotnet: D:\UserData\Documents\Radzen Projects\zfDemo_dotNet2\Zenfolio\Zenfolio.csproj(166,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\2.2.104\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
dotnet:
dotnet: The build failed. Please fix the build errors and run again.
You can add also additional dependencies to server/project.csproj and on subsequent runs Radzen will merge the template with your current project file.
Thanks for the reply. I believe I've done all these steps yet the project I add still disappears from application.sln. Here are the exact steps I did to recreate the issue. If a screen recording would be better/helpful, please let me know...
create radzen project w/ c# 2.0
create 1 page in project
build radzen project
stop radzen project
open application.sln
add new project to application.sln --> 'WCF Service Application' --> name it 'Zenfolio'
delete auto generated IService1.cs and Service1.svc
rebuild application.sln --> fails.
close application.sln
run/build Radzen application
re-open application.sln --> Zenfolio Project is missing.
re-open application.sln --> note that 'Zenfolio' project is still present.
close 'application.sln'
build/run Radzen application --> fails.
dotnet: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ObsoleteReferences.targets(33,5): warning NETSDK1059: The tool 'Microsoft.EntityFrameworkCore.Tools.DotNet' is now included in the .NET Core SDK. Information on resolving this warning is available at (Breaking changes in .NET Core 2.1 - .NET | Microsoft Learn). [D:\UserData\Documents\Radzen Projects\zfDemo_001\server\project.csproj]
dotnet: D:\UserData\Documents\Radzen Projects\zfDemo_001\Zenfolio\Zenfolio.csproj(85,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\2.2.104\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
How do you mean? Can I run the Radzen application from VS2017? I'm not sure how to do this.
Additionally, I re-did my above steps w/ minor adjustments...please note my observations below.
rebuild application.sln --> fails.
Severity Code Description Project File Line Suppression State
Error Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE. project D:\UserData\Documents\Radzen Projects\zfDemo_001\server\project.csproj 30
save/close/re-open application.sln --> NOTE: Zenfolio project is STILL present.
project --> dependencies --> add 'Zenfolio'
save/rebuild application.sln --> fails.
Severity Code Description Project File Line Suppression State
Error Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE. project D:\UserData\Documents\Radzen Projects\zfDemo_001\server\project.csproj 30
save/close application.sln
run Radzen application --> fails
Severity Code Description Project File Line Suppression State
Error Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE. project D:\UserData\Documents\Radzen Projects\zfDemo_001\server\project.csproj 30
open application.sln --> Zenfolio project is now MISSING.
I've tried running from VS2017 - The command prompt loads but the UI never does. After a few minutes of waiting, I try to manually navigate to the UI screen (http://localhost:8000/zf-login) but I only get this error...
It appears that Radzen is making changes to the application.sln file.
To test this I,
Created the project from scratch.
Added the new Project (Zenfolio) to the application.sln file.
Added dependency to Zenfolio w/in application.sln.
Save/Build --> Build is ok.
Closed/Re-Open application.sln --> Confirmed 'Zenfolio' project is still present.
Repeated this step two more times.
Closed application.sln.
COPIED 'applcation.sln' to new folder.
Opened Radzen Project.
Build/Run --> failed.
dotnet: D:\UserData\Documents\Radzen Projects\zfDemo_001\Zenfolio\Zenfolio.csproj(166,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\2.2.104\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
dotnet:
dotnet: The build failed. Please fix the build errors and run again.
Closed Radzen
Compared 'application.sln' and the COPY of 'application.sln' from step 8 above and observed that the 'applcation.sln' has changed. Please see below.
Again - it appears that 'application.sln' did NOT change until I opened the Radzen Project and did a build/run.
radzen: Generating code ...
radzen: Code generation done in 68ms.
dotnet: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ObsoleteReferences.targets(33,5): warning NETSDK1059: The tool 'Microsoft.EntityFrameworkCore.Tools.DotNet' is now included in the .NET Core SDK. Information on resolving this warning is available at (Breaking changes in .NET Core 2.1 - .NET | Microsoft Learn). [D:\UserData\Documents\Radzen Projects\zfDemo_002\server\project.csproj]
dotnet: C:\Program Files\dotnet\sdk\2.2.104\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ObsoleteReferences.targets(33,5): warning NETSDK1059: The tool 'Microsoft.EntityFrameworkCore.Tools.DotNet' is now included in the .NET Core SDK. Information on resolving this warning is available at (Breaking changes in .NET Core 2.1 - .NET | Microsoft Learn). [D:\UserData\Documents\Radzen Projects\zfDemo_002\server\project.csproj]
dotnet: D:\UserData\Documents\Radzen Projects\zfDemo_002\Zenfolio\Zenfolio.csproj(166,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\2.2.104\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
dotnet:
dotnet: The build failed. Please fix the build errors and run again.
Further Observations:
Close Radzen
Re-open 'applicaiton.sln'
Remove dependency from step 7 above.
Save/Build/Close
Re-open Radzen
Build/Run --> No Errors.
It seems that adding the project dependency to the newly added project in VS2017 is breaking Radzen...