Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hello guys,i have getting an error of targeted framework i don't know why am getting this issue please help me and guide me what's the issue and how can i solve this


Warning 1 The primary reference "SplashScreen" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0". Final POS


Thankx in Advance

What I have tried:

public Splash_Screen()
{
Thread t = (new Thread(Splash));
InitializeComponent();
//loading data
string str = string.Empty;
for (int i = 0; i < 100000; i++)
{
str += i.ToString();
}
//complete
t.Abort();
}
void Splash()
{
SplashScreen.SplashForm frm = new SplashScreen.SplashForm();
frm.AppName = "software";
Application.Run(frm);
}
Posted
Updated 29-May-17 4:01am

1 solution

You are referencing an assembly that has higher .NET framework version than your project has. Change your project .NET version to 4.5.2 and it should work fine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900