How to run project
Hi everyone! I recently received an ASP.NET project to work on the front-end, but I’m having trouble figuring out how to run it. I’ll share the file structure so you can take a look. I installed some extensions based on YouTube tutorials that I thought would be helpful, but when I open the project, I get this warning:
[Warning] The project file is in an unsupported format (for example, a traditional .NET Framework project). It needs to be converted to the new SDF style to work in C# Dev Kit.
At first, I ignored it, but now I’m stuck and not sure what to do next. Has anyone encountered this before or know how to resolve it? Am I doing something wrong? Any help would be greatly appreciated! 🙏
19 Replies
Seems thats an oldschool .NET framework project, not a modern .NET one
This unfortunately means vs code is out, you'll need a full blown VS for this
but lets verify, go into projectStore and look for a
.csproj
file
then open that up in a text editor and see what it says at the first.. 10 rows or sothis?
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="....\packages\AspNetCoreHero.ToastNotification.1.1.0\build\AspNetCoreHero.ToastNotification.props" Condition="Exists('....\packages\AspNetCoreHero.ToastNotification.1.1.0\build\AspNetCoreHero.ToastNotification.props')" />
<Import Project="....\packages\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.1.20.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props" Condition="Exists('....\packages\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.1.20.1\build\Microsoft.VisualStudio.Azure.Containers.Tools.Targets.props')" />
<Import Project="$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
yep, thats a .NET framework project
not a .NET project
💀 so i need to download vsual studio to run it? Not vs code, thats what you mean?
yup. and if this is for work, you'll need a real license
you are not allowed to use VS community for commercial work, afaik
oh okay so i think i need to talk to my team
sounds like a plan
Is it an old project? .NET Core became a thing in 2016, and after 2018 or so you really wouldn't make a new .NET Framework project
I am not a Rider user, but what about using it.
Rider would work too, but again, thats a non-commercial license
Agree ultimately it's time to bring current.
yeah. if this was modern .net, you could just get the SDK and
dotnet run
it, no licenses neededI can't quite tell, my role in the team is another one but my supervisor asked me if i could improve the desing
i said yes and now im here
I see
but yeah, have one of the BE devs help you get it running, then you can do the frontend stuff - whatever that might be in this project
what is rider? An IDE?
yes
its some kind of ASP project, so its web, but I cant tell if its MVC, razorpages or just an API
i guess its better if i ask him, i was kind of afraid bc it its not even his part too, so he wouldnt know. Idk how we came to this
but if i see how the other devs do it i guess ill have an idea
ill try rider first
Rider will work for sure, its just a license issue.
Actually, the VS community license has a 1 million dollar revenue clause, so if your company makes less then that a year, you can use VS community
There is nothing stopping you from downloading VS Community edition and running the solution. But I would very hesitant on doing any work on the project and sending it into the this team for production purposes. That will violate the license terms.
i just send them a text, ill try running it and if they don't figure it out ig ill just pass the task away